Package org.apache.jackrabbit.ocm.testmodel.inheritance

Examples of org.apache.jackrabbit.ocm.testmodel.inheritance.Ancestor


      assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
      assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
      assertEquals("Descendant descendantField is invalid", descendant  .getDescendantField(), "descendantValue");
      assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);

      Ancestor ancestor = (Ancestor) ocm.getObject("/test");
      assertTrue("Invalid object instance", ancestor instanceof Descendant );
      assertEquals("Ancestor  path is invalid", ancestor.getPath(), "/test");
      assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
     
     
    } catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here


      assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
      assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
      assertEquals("Descendant descendantField is invalid", descendant  .getDescendantField(), "descendantValue");
      assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);

      Ancestor ancestor = (Ancestor) ocm.getObject("/test");
      assertTrue("Invalid object instance", ancestor instanceof Descendant );
      assertEquals("Ancestor  path is invalid", ancestor.getPath(), "/test");
      assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
     
     
    } catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here

      assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
      assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
      assertEquals("Descendant descendantField is invalid", descendant  .getDescendantField(), "descendantValue");
      assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);

      Ancestor ancestor = (Ancestor) ocm.getObject("/test");
      assertTrue("Invalid object instance", ancestor instanceof Descendant );
      assertEquals("Ancestor  path is invalid", ancestor.getPath(), "/test");
      assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
     
     
    } catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here

      assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
      assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
      assertEquals("Descendant descendantField is invalid", descendant  .getDescendantField(), "descendantValue");
      assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);

      Ancestor ancestor = (Ancestor) ocm.getObject("/test");
      assertTrue("Invalid object instance", ancestor instanceof Descendant );
      assertEquals("Ancestor  path is invalid", ancestor.getPath(), "/test");
      assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
     
     
    } catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here

      assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
      assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
      assertEquals("Descendant descendantField is invalid", descendant  .getDescendantField(), "descendantValue");
      assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);

      Ancestor ancestor = (Ancestor) ocm.getObject("/test");
      assertTrue("Invalid object instance", ancestor instanceof Descendant );
      assertEquals("Ancestor  path is invalid", ancestor.getPath(), "/test");
      assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
     
     
    } catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here

      assertEquals("Descendant path is invalid", descendant.getPath(), "/test");
      assertEquals("Descendant ancestorField is invalid", descendant.getAncestorField(), "anotherAncestorValue");
      assertEquals("Descendant descendantField is invalid", descendant  .getDescendantField(), "descendantValue");
      assertEquals("Descendant intField is invalid", descendant.getIntField(), 123);

      Ancestor ancestor = (Ancestor) ocm.getObject("/test");
      assertTrue("Invalid object instance", ancestor instanceof Descendant );
      assertEquals("Ancestor  path is invalid", ancestor.getPath(), "/test");
      assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAncestorValue");
     
     
    } catch (Exception e) {
      e.printStackTrace();
      fail();
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.testmodel.inheritance.Ancestor

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.