Add two more tests.

This commit is contained in:
dotasek 2022-04-08 11:12:17 -04:00
parent ccf6513113
commit 47f37ffd50
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import static org.mockito.Mockito.*;
public class IgLoaderTests { public class IgLoaderTests {
final static String DUMMY_PATH = Paths.get("src","test","resources", "igLoad", "my-dummy-ig.json").toAbsolutePath().toString(); final static String DUMMY_PATH = Paths.get("src","test","resources", "igLoad", "my-dummy-ig.json").toAbsolutePath().toString();
final static String DUMMY_FOO_PATH = Paths.get("src","test","resources", "igLoad", "my-dummy-ig.json").toAbsolutePath().toString();
@Mock @Mock
FilesystemPackageCacheManager filesystemPackageCacheManager; FilesystemPackageCacheManager filesystemPackageCacheManager;
@ -43,7 +44,9 @@ public class IgLoaderTests {
return Stream.of( return Stream.of(
Arguments.of(DUMMY_PATH, DUMMY_PATH, "4.0.1"), Arguments.of(DUMMY_PATH, DUMMY_PATH, "4.0.1"),
Arguments.of("[3.0.1]" + DUMMY_PATH, DUMMY_PATH, "3.0.1"), Arguments.of("[3.0.1]" + DUMMY_PATH, DUMMY_PATH, "3.0.1"),
Arguments.of("[" + DUMMY_PATH, "[" + DUMMY_PATH, "4.0.1") Arguments.of("[" + DUMMY_PATH, "[" + DUMMY_PATH, "4.0.1"),
Arguments.of(DUMMY_FOO_PATH, DUMMY_FOO_PATH, "4.0.1"),
Arguments.of("[2.0.1]"+DUMMY_FOO_PATH, DUMMY_FOO_PATH, "2.0.1")
); );
} }