Package siena.base.test.model

Examples of siena.base.test.model.EnumTest


    PolymorphicModelStringId<List<String>> poly2 = pm.getByKey(PolymorphicModelStringId.class, poly.id);
    assertEquals(poly, poly2);
  }

  public void testEnum() {
    EnumTest e = new EnumTest();
    e.role = EnumTest.UserRole.ADMIN;
    e.insert();
   
    List<EnumTest> es = Model.all(EnumTest.class).filter("role", EnumTest.UserRole.ADMIN).fetch();
    assertTrue(!es.isEmpty());
    assertEquals(e, es.get(0));
  }
View Full Code Here

TOP

Related Classes of siena.base.test.model.EnumTest

Copyright © 2018 www.massapicom. 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.