mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-04-08 03:44:31 +00:00
Changes were missing from the unit test file, updated and should pass
now
This commit is contained in:
parent
3d6504743f
commit
3134a165fa
@ -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;
|
||||
|
||||
@ -28,9 +25,8 @@ public class VersionHelperTest {
|
||||
*/
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user