Package com.artemis.component

Source Code of com.artemis.component.EmptyPackedTest

package com.artemis.component;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.artemis.Entity;
import com.artemis.PackedComponent;
import com.artemis.World;

public class EmptyPackedTest {
 
  @Test @SuppressWarnings("static-method")
  public void empty_packed_shouldnt_reference_bytbuffer() throws Exception {
    World world = new World();
    world.initialize();
   
    Entity e1 = world.createEntity();
    EmptyPacked empty = e1.createComponent(EmptyPacked.class);
    assertEquals(PackedComponent.class, empty.getClass().getSuperclass());
  }
}
TOP

Related Classes of com.artemis.component.EmptyPackedTest

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.