Search in sources :

Example 6 with EntityManager

use of org.terasology.entitySystem.entity.EntityManager in project Terasology by MovingBlocks.

the class ComponentSystemManagerTest method setUp.

@Before
public void setUp() {
    Context context = mock(Context.class);
    EntityManager entityManager = mock(EntityManager.class);
    when(entityManager.getEventSystem()).thenReturn(mock(EventSystem.class));
    when(context.get(EntityManager.class)).thenReturn(entityManager);
    console = mock(Console.class);
    when(context.get(Console.class)).thenReturn(console);
    systemUnderTest = new ComponentSystemManager(context);
}
Also used : Context(org.terasology.context.Context) EntityManager(org.terasology.entitySystem.entity.EntityManager) Console(org.terasology.logic.console.Console) EventSystem(org.terasology.entitySystem.event.internal.EventSystem) Before(org.junit.Before)

Aggregations

EntityManager (org.terasology.entitySystem.entity.EntityManager)6 EntityRef (org.terasology.entitySystem.entity.EntityRef)3 IOException (java.io.IOException)2 Before (org.junit.Before)2 Context (org.terasology.context.Context)2 ComponentSystemManager (org.terasology.engine.ComponentSystemManager)2 EngineEntityManager (org.terasology.entitySystem.entity.internal.EngineEntityManager)2 LocalPlayer (org.terasology.logic.players.LocalPlayer)2 StorageManager (org.terasology.persistence.StorageManager)2 WorldGenerator (org.terasology.world.generator.WorldGenerator)2 Path (java.nio.file.Path)1 Map (java.util.Map)1 InvocationOnMock (org.mockito.invocation.InvocationOnMock)1 Answer (org.mockito.stubbing.Answer)1 Config (org.terasology.config.Config)1 ContextImpl (org.terasology.context.internal.ContextImpl)1 SimpleUri (org.terasology.engine.SimpleUri)1 StateMainMenu (org.terasology.engine.modes.StateMainMenu)1 ModuleManager (org.terasology.engine.module.ModuleManager)1 RenderingSubsystemFactory (org.terasology.engine.subsystem.RenderingSubsystemFactory)1