Search in sources :

Example 6 with DummyModContainer

use of net.minecraftforge.fml.common.DummyModContainer in project MinecraftForge by MinecraftForge.

the class SubstitutionInjectionTest method setup.

@BeforeClass
public static void setup() {
    Loader.instance();
    Bootstrap.register();
    Loader.instance().setupTestHarness(new DummyModContainer(new ModMetadata() {

        {
            modId = "test";
        }
    }));
}
Also used : ModMetadata(net.minecraftforge.fml.common.ModMetadata) DummyModContainer(net.minecraftforge.fml.common.DummyModContainer) BeforeClass(org.junit.BeforeClass)

Aggregations

DummyModContainer (net.minecraftforge.fml.common.DummyModContainer)6 ModMetadata (net.minecraftforge.fml.common.ModMetadata)6 BeforeClass (org.junit.BeforeClass)5 JsonObject (com.google.gson.JsonObject)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 ItemStack (net.minecraft.item.ItemStack)1 DuplicateModsFoundException (net.minecraftforge.fml.common.DuplicateModsFoundException)1 Java8VersionException (net.minecraftforge.fml.common.Java8VersionException)1 LoaderException (net.minecraftforge.fml.common.LoaderException)1 MissingModsException (net.minecraftforge.fml.common.MissingModsException)1 WrongMinecraftVersionException (net.minecraftforge.fml.common.WrongMinecraftVersionException)1 ModSortingException (net.minecraftforge.fml.common.toposort.ModSortingException)1