Package com.artemis

Source Code of com.artemis.PackedWithFieldAccessTest

package com.artemis;

import static com.artemis.Transformer.transform;
import static com.artemis.Weaver.scan;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import com.artemis.component.PackedFields;
import com.artemis.meta.ClassMetadata;
import com.artemis.meta.ClassMetadata.WeaverType;

@SuppressWarnings("static-method")
public class PackedWithFieldAccessTest {

  @Test
  public void packed_direct_field_access() throws Exception {
    ClassMetadata meta = scan(transform(PackedFields.class));
    assertEquals(WeaverType.NONE, meta.annotation);
    assertTrue(meta.foundReset);
    assertTrue(meta.foundEntityFor);
    assertEquals("com/artemis/PackedComponent", meta.superClass);
  }
}
TOP

Related Classes of com.artemis.PackedWithFieldAccessTest

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.