Package org.objectweb.speedo.pobjects.inheritance.index

Examples of org.objectweb.speedo.pobjects.inheritance.index.Mother


   * create the objects
   */
  public void testCreate() {
    PersistenceManager pm = pmf.getPersistenceManager();
    try {
      Mother m1 = new Mother(1,"mother1", true);
      Mother m2 = new Mother(2,"mother2", true);
      Daughter d1 = new Daughter(3,"daughter1", false, new Long(3));
      Daughter d2 = new Daughter(4,"daughter2", false, new Long(4));
      Collection col = new ArrayList();
      col.add(m1);
      col.add(m2);
View Full Code Here


        query.setFilter(filter);
        Collection result = (Collection) query.execute();
        assertNotNull(result);
        Iterator it = result.iterator();
        while (it.hasNext()) {
          Mother m = (Mother) it.next();
          assertTrue("Field java1 should be superior to 0.", m.getJava1()>0);
        }
    } catch (Exception e) {
      fail(e.getMessage());
    } finally {
      pm.evictAll();
View Full Code Here

        query.setFilter(filter);
        Collection result = (Collection) query.execute();
        assertNotNull(result);
        Iterator it = result.iterator();
        while (it.hasNext()) {
          Mother m = (Mother) it.next();
          assertTrue("Field java1 should be superior to 0.", m.getJava1()>0);
        }
    } catch (Exception e) {
      fail(e.getMessage());
    } finally {
      pm.evictAll();
View Full Code Here

    PersistenceManager pm = pmf.getPersistenceManager();
    try {
      Extent extent = pm.getExtent(cl, withSubclasses);
      Iterator it = extent.iterator();
      while(it.hasNext()) {
        Mother m = (Mother) it.next();
        assertTrue(m.getJava1()>0);
      }
    } catch (Exception e) {
      fail(e.getMessage());
    } finally {
      pm.evictAll();
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.pobjects.inheritance.index.Mother

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.