Package siena.base.test.model

Examples of siena.base.test.model.PersonUUID


      fail();
    }
  }
 
  public void testGetByKeyUUID() {
    PersonUUID curie = getByKeyPersonUUID(UUID_CURIE.id);
    assertEquals(UUID_CURIE, curie);
  }
View Full Code Here


    assertEquals(l.get(0).id, people.get(2).id);
  }
 
 
  public void testFilterOperatorEqualString() {
    PersonUUID person = pm.createQuery(PersonUUID.class).filter("firstName", "Albert").get();
    assertNotNull(person);
    assertEquals(UUID_EINSTEIN, person);
  }
View Full Code Here

    assertNotNull(person);
    assertEquals(UUID_EINSTEIN, person);
  }
 
  public void testFilterOperatorEqualInt() {
    PersonUUID person = pm.createQuery(PersonUUID.class).filter("n", 3).get();
    assertNotNull(person);
    assertEquals(UUID_EINSTEIN, person);
  }
View Full Code Here

    Query<PersonStringID> query = pm.createQuery(PersonStringID.class);
    return query.order(desc ? "-"+order : order);
  }
 
  protected PersonUUID getPersonUUID(String id) {
    PersonUUID p = new PersonUUID();
    p.id = id;
    pm.get(p);
    return p;
  }
View Full Code Here

TOP

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

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.