mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Fix tests
This commit is contained in:
@@ -139,6 +139,11 @@ public class BaseUnitTest
|
||||
if (file.exists() && file.canRead()) in = new FileInputStream(file);
|
||||
if (in != null) return in;
|
||||
|
||||
basePath = "src/test/resources/";
|
||||
file = new File(basePath + assetPath);
|
||||
if (file.exists() && file.canRead()) in = new FileInputStream(file);
|
||||
if (in != null) return in;
|
||||
|
||||
throw new IllegalStateException("asset not found: " + assetPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user