Search in sources :

Example 1 with ModsManager

use of io.xol.chunkstories.api.content.mods.ModsManager in project chunkstories by Hugobros3.

the class ModsManagerTest method testModsManager.

@Test
public void testModsManager() {
    String coreContentLocation = System.getProperty("coreContentLocation", "../chunkstories-core/build/distributions/core_content.zip");
    try {
        ModsManager modsManager = new ModsManagerImplementation(new File(coreContentLocation));
        modsManager.loadEnabledMods();
    } catch (NonExistentCoreContent e) {
        e.printStackTrace();
        fail();
    } catch (NotAllModsLoadedException e) {
        e.printStackTrace();
    }
}
Also used : ModsManagerImplementation(io.xol.chunkstories.content.mods.ModsManagerImplementation) ModsManager(io.xol.chunkstories.api.content.mods.ModsManager) File(java.io.File) NotAllModsLoadedException(io.xol.chunkstories.api.exceptions.content.mods.NotAllModsLoadedException) NonExistentCoreContent(io.xol.chunkstories.content.mods.ModsManagerImplementation.NonExistentCoreContent) Test(org.junit.Test)

Aggregations

ModsManager (io.xol.chunkstories.api.content.mods.ModsManager)1 NotAllModsLoadedException (io.xol.chunkstories.api.exceptions.content.mods.NotAllModsLoadedException)1 ModsManagerImplementation (io.xol.chunkstories.content.mods.ModsManagerImplementation)1 NonExistentCoreContent (io.xol.chunkstories.content.mods.ModsManagerImplementation.NonExistentCoreContent)1 File (java.io.File)1 Test (org.junit.Test)1