Package marauroa.common.game

Examples of marauroa.common.game.RPClass.subclassOf()


public class TestRPClass {

  @Test
  public void subclass() {
    final RPClass rpsuper = new RPClass("super");
    assertTrue(rpsuper.subclassOf("super"));
    final RPClass sub = new RPClass("sub");
    assertFalse(sub.subclassOf(("super")));
    sub.isA("super");
    assertTrue(sub.subclassOf(("super")));
  }
View Full Code Here


  @Test
  public void subclass() {
    final RPClass rpsuper = new RPClass("super");
    assertTrue(rpsuper.subclassOf("super"));
    final RPClass sub = new RPClass("sub");
    assertFalse(sub.subclassOf(("super")));
    sub.isA("super");
    assertTrue(sub.subclassOf(("super")));
  }

}
View Full Code Here

    final RPClass rpsuper = new RPClass("super");
    assertTrue(rpsuper.subclassOf("super"));
    final RPClass sub = new RPClass("sub");
    assertFalse(sub.subclassOf(("super")));
    sub.isA("super");
    assertTrue(sub.subclassOf(("super")));
  }

}
View Full Code Here

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.