Package siena.base.test.model

Examples of siena.base.test.model.PersonStringID


    assertEquals(LongManualID_EINSTEIN, people.get(2));
    assertEquals(maxwell, people.get(3));
  }
 
  public void testInsertStringID() {
    PersonStringID maxwell = new PersonStringID();
    maxwell.id = "MAXWELL";
    maxwell.firstName = "James Clerk";
    maxwell.lastName = "Maxwell";
    maxwell.city = "Edinburgh";
    maxwell.n = 4;
View Full Code Here


    PersonLongManualID curie = getPersonLongManualID(LongManualID_CURIE.id);
    assertEquals(LongManualID_CURIE, curie);
  }

  public void testGetStringID() {
    PersonStringID curie = getPersonStringID(StringID_CURIE.id);
    assertEquals(StringID_CURIE, curie);
  }
View Full Code Here

    assertEquals(LongManualID_EINSTEIN, people.get(2));
    assertEquals(maxwell, people.get(3));
  }
 
  public void testSaveStringID() {
    PersonStringID maxwell = new PersonStringID();
    maxwell.id = "MAXWELL";
    maxwell.firstName = "James Clerk";
    maxwell.lastName = "Maxwell";
    maxwell.city = "Edinburgh";
    maxwell.n = 4;
View Full Code Here

    assertNotNull(person);
    assertEquals(LongManualID_EINSTEIN, person);
  }
 
  public void testFilterOperatorEqualStringID() {
    PersonStringID person = pm.createQuery(PersonStringID.class).filter("id", "EINSTEIN").get();
    assertNotNull(person);
    assertEquals(StringID_EINSTEIN, person);
  }
View Full Code Here

    PersonLongManualID curie = getPersonLongManualID(LongManualID_CURIE.id);
    assertEquals(LongManualID_CURIE, curie);
  }

  public void testGetStringID() {
    PersonStringID curie = getPersonStringID(StringID_CURIE.id);
    assertEquals(StringID_CURIE, curie);
  }
View Full Code Here

    PersonLongManualID curie = pm.getByKey(PersonLongManualID.class, LongManualID_CURIE.id).get();
    assertEquals(LongManualID_CURIE, curie);
  }

  public void testGetByKeyStringID() {
    PersonStringID curie = pm.getByKey(PersonStringID.class, StringID_CURIE.id).get();
    assertEquals(StringID_CURIE, curie);
  }
View Full Code Here

    assertEquals(LongManualID_EINSTEIN, people.get(2));
    assertEquals(maxwell, people.get(3));
  }
 
  public void testSaveStringID() {
    PersonStringID maxwell = new PersonStringID();
    maxwell.id = "MAXWELL";
    maxwell.firstName = "James Clerk";
    maxwell.lastName = "Maxwell";
    maxwell.city = "Edinburgh";
    maxwell.n = 4;
View Full Code Here

    assertNotNull(person);
    assertEquals(LongManualID_EINSTEIN, person);
  }
 
  public void testFilterOperatorEqualStringID() {
    PersonStringID person = pm.createQuery(PersonStringID.class).filter("id", "EINSTEIN").get();
    assertNotNull(person);
    assertEquals(StringID_EINSTEIN, person);
  }
View Full Code Here

    assertEquals(LongManualID_EINSTEIN, people.get(2));
    assertEquals(maxwell, people.get(3));
  }
 
  public void testInsertStringID() {
    PersonStringID maxwell = new PersonStringID();
    maxwell.id = "MAXWELL";
    maxwell.firstName = "James Clerk";
    maxwell.lastName = "Maxwell";
    maxwell.city = "Edinburgh";
    maxwell.n = 4;
View Full Code Here

    PersonLongManualID curie = getPersonLongManualID(LongManualID_CURIE.id);
    assertEquals(LongManualID_CURIE, curie);
  }

  public void testGetStringID() {
    PersonStringID curie = getPersonStringID(StringID_CURIE.id);
    assertEquals(StringID_CURIE, curie);
  }
View Full Code Here

TOP

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

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.