Changes were missing from the unit test file, updated and should pass

now
This commit is contained in:
Cyrus 2024-01-17 14:36:05 -05:00
parent 3d6504743f
commit 3134a165fa

View File

@ -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);
}
}