Skip to content

Commit

Permalink
fix: Call of function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfd2007 committed Mar 1, 2024
1 parent c2be6d9 commit a8f820e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ public void setFinalTrackingIdTest() throws IOException, CsafException {
AdvisoryWrapper advisory = AdvisoryWrapper.createNewFromCsaf(csafToRequest(csafJsonWithReleaseDate), "Mustermann", Semantic.name());
advisory.setTemporaryTrackingId("tempExamle", "7", 123L);
advisory.setFinalTrackingIdAndUrl("https://example.com", "example", "5", 158L);
long year = Instant.now().get(ChronoField.YEAR);
long year = Instant.now().getLong(ChronoField.YEAR);
assertEquals("example-" + year + "-00158", advisory.getDocumentTrackingId());
assertEquals("https://example.com/WHITE/" + year + "/example-" + year + "-00158.json", advisory.at("/csaf/document/references/0/url").asText());
assertEquals("URL generated by system", advisory.at("/csaf/document/references/0/summary").asText());
Expand Down

0 comments on commit a8f820e

Please sign in to comment.