From 2ee7c38437b51399a0e2ebb64113736a60e0a3f4 Mon Sep 17 00:00:00 2001 From: psmf22 <117990501+psmf22@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:49:03 +0100 Subject: [PATCH] Update VersionHandlingTest.java --- .../versionHandling/VersionHandlingTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fcli-core/fcli-tool/src/test/java/com/fortify/cli/tool/versionHandling/VersionHandlingTest.java b/fcli-core/fcli-tool/src/test/java/com/fortify/cli/tool/versionHandling/VersionHandlingTest.java index d610b39119..4778781147 100644 --- a/fcli-core/fcli-tool/src/test/java/com/fortify/cli/tool/versionHandling/VersionHandlingTest.java +++ b/fcli-core/fcli-tool/src/test/java/com/fortify/cli/tool/versionHandling/VersionHandlingTest.java @@ -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; }