Skip to content

Commit

Permalink
Changes were missing from the unit test file, updated and should pass
Browse files Browse the repository at this point in the history
now
  • Loading branch information
cyrus-dev committed Jan 17, 2024
1 parent 3d65047 commit 3134a16
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions HIRS_Utils/src/test/java/hirs/utils/VersionHelperTest.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package hirs.utils;

import com.google.common.io.Resources;
import org.junit.jupiter.api.Test;

import java.net.URL;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;

Expand All @@ -28,9 +25,8 @@ public void testGetVersionFail() {
*/
@Test
public void testGetVersionDefault() {
URL url = Resources.getResource("VERSION");
String expected = "Test.Version";
String actual = VersionHelper.getVersion(url.getPath());
String actual = VersionHelper.getVersion("VERSION");
assertEquals(expected, actual);
}
}

0 comments on commit 3134a16

Please sign in to comment.