Package com.artemis

Source Code of com.artemis.FactoryWireTest

package com.artemis;


import com.artemis.factory.Ship;
import com.artemis.factory.ShipNoMethods;
import com.artemis.factory.ShipShortWire;
import com.artemis.manager.TypedEntityFactory;
import com.google.gwt.junit.client.GWTTestCase;

@SuppressWarnings("static-method")
public class FactoryWireTest extends GWTTestCase {
 
  @Override
  public String getModuleName() {
    return "com.ArtemisTest";
  }
 
  public void test_inject_entity_factories() {
    World w = new World();
    TypedEntityFactory man = w.setManager(new TypedEntityFactory());
    w.initialize();
   
    assertNotNull(man.ship);
    assertEquals(Ship.class.getName() + "Impl", man.ship.getClass().getName());
    assertNotNull(man.shipNoMethods);
    assertEquals(ShipNoMethods.class.getName() + "Impl",
        man.shipNoMethods.getClass().getName());
    assertNotNull(man.shipShortWire);
    assertEquals(ShipShortWire.class.getName() + "Impl",
        man.shipShortWire.getClass().getName());
  }
}
TOP

Related Classes of com.artemis.FactoryWireTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.