test(battery): Added a better check for resource not existing.
@@ -12,7 +12,7 @@ import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
-import org.junit.Assert;
+import org.junit.jupiter.api.Assertions;
import com.synopsys.integration.util.ResourceUtil;
@@ -68,8 +68,9 @@ public class BatteryFiles {
public static File asFile(final String relativeResourcePath) {
final URL resource = BatteryFiles.class.getResource(resourcePrefix + relativeResourcePath);
+ Assertions.assertNotNull(resource, "Could not find resource path: " + resourcePrefix + relativeResourcePath);
final File file = new File(resource.getFile());
- Assert.assertTrue(file.exists());
+ Assertions.assertTrue(file.exists());
return file;
}
