Package org.seattlegamer.spacegame.core.tests

Source Code of org.seattlegamer.spacegame.core.tests.ComponentTests$TestComponent

package org.seattlegamer.spacegame.core.tests;
import static org.junit.Assert.assertEquals;

import java.util.UUID;

import org.junit.Test;
import org.seattlegamer.spacegame.core.Bus;
import org.seattlegamer.spacegame.core.BusImpl;
import org.seattlegamer.spacegame.core.Component;

public class ComponentTests {

  @Test
  public void toStringHasClassName() {
    Bus bus = new BusImpl();
    Component component = new TestComponent(bus, UUID.randomUUID());
    String string = component.toString();
    assertEquals("TestComponent", string);
  }
 
  private class TestComponent extends Component {
   
    public TestComponent(Bus bus, UUID entityId) {
      super(bus, entityId);
    }

  }
 
}
TOP

Related Classes of org.seattlegamer.spacegame.core.tests.ComponentTests$TestComponent

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.