Skip to content

Commit

Permalink
Merge pull request #486 from psmf22/tool_debricked
Browse files Browse the repository at this point in the history
chore: updated test
  • Loading branch information
psmf22 authored Dec 6, 2023
2 parents 0d33af7 + 4916da9 commit 9442eb2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public void testVersionHandling() throws Exception {
try (InputStream file = classLoader.getResourceAsStream(resourceFile)) {

var downloadDescriptor = yamlObjectMapper.readValue(file, ToolDownloadDescriptor.class);
var d = downloadDescriptor.getVersion("20");
var d2 = downloadDescriptor.getVersion("20.");
var d3 = downloadDescriptor.getVersion("21.1");
var d4 = downloadDescriptor.getVersion("21.1.2");
var d = downloadDescriptor.getVersion("20", "");
var d2 = downloadDescriptor.getVersion("20.", "");
var d3 = downloadDescriptor.getVersion("21.1", "");
var d4 = downloadDescriptor.getVersion("21.1.2", "");

Assertions.assertEquals(d.getVersion(), "20.2.4");
Assertions.assertEquals(d2.getVersion(), "20.2.4");
Assertions.assertEquals(d3.getVersion(), "21.1.4");
Assertions.assertEquals(d4.getVersion(), "21.1.2");
Assertions.assertEquals(d.getVersion(), "20.2.4", "");
Assertions.assertEquals(d2.getVersion(), "20.2.4", "");
Assertions.assertEquals(d3.getVersion(), "21.1.4", "");
Assertions.assertEquals(d4.getVersion(), "21.1.2", "");
} catch(Exception e) {
throw e;
}
Expand Down

0 comments on commit 9442eb2

Please sign in to comment.