use of org.terasology.logic.console.Console in project Terasology by MovingBlocks.
the class ComponentSystemManager method initialise.
public void initialise() {
if (!initialised) {
console = context.get(Console.class);
for (ComponentSystem system : iterateAll()) {
initialiseSystem(system);
}
initialised = true;
} else {
logger.error("ComponentSystemManager got initialized twice");
}
}
use of org.terasology.logic.console.Console 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);
}
Aggregations