use of org.terasology.module.DependencyResolver in project Terasology by MovingBlocks.
the class ModuleDownloadListGeneratorTest method testSingleModuleNeedsUpdate.
@Test
public void testSingleModuleNeedsUpdate() throws DependencyResolutionFailedException {
Module moduleV1 = buildSimpleModule("myModule", "1.0.0");
Module moduleV2 = buildSimpleModule("myModule", "2.0.0");
ModuleRegistry localRegistry = buildRegistry("1.0.0", moduleV1);
DependencyResolver resolver = mockResolver(true, moduleV2, buildEngineModule("1.0.0"));
ModuleDownloadListGenerator listGenerator = new ModuleDownloadListGenerator(localRegistry, resolver);
assertEquals(Collections.singleton(moduleV2), buildList(listGenerator));
}
Aggregations