Package org.apache.jackrabbit.ocm.testmodel

Examples of org.apache.jackrabbit.ocm.testmodel.E


    {
       
        B expB = new B();
        expB.setB1("b1value");
        expB.setB2("b2value");
        E expE = new E();
        expE.setPath("/someD");
        expE.setD1("d1value");
        expE.setB1(expB);
       
       
        ocm.insert( expE);
        ocm.save();
      
        E actE = (E) ocm.getObject( "/someD");
      
        assertEquals(expE.getD1(), actE.getD1());
       
        expE.setD1("updatedvalueD1");
        expB.setB1("updatedvalue1");
       
        ocm.update( expE);
        ocm.save();
              
        actE = (E) ocm.getObject"/someD");
       
        assertEquals(expE.getD1(), actE.getD1());
                       
        expE.setB1(null);
        ocm.update( expE);
        ocm.save();
       
        actE = (E) ocm.getObject"/someD");
       
        assertEquals(expE.getD1(), actE.getD1());       
       
  
        List messages = FakeBeanConverter.getLog();
        assertEquals(6, messages.size());
        assertEquals("insert at path /someD", messages.get(0));
View Full Code Here


    {
       
        B expB = new B();
        expB.setB1("b1value");
        expB.setB2("b2value");
        E expE = new E();
        expE.setPath("/someD");
        expE.setD1("d1value");
        expE.setB1(expB);
       
       
        ocm.insert( expE);
        ocm.save();
      
        E actE = (E) ocm.getObject( "/someD");
      
        assertEquals(expE.getD1(), actE.getD1());
       
        expE.setD1("updatedvalueD1");
        expB.setB1("updatedvalue1");
       
        ocm.update( expE);
        ocm.save();
              
        actE = (E) ocm.getObject"/someD");
       
        assertEquals(expE.getD1(), actE.getD1());
                       
        expE.setB1(null);
        ocm.update( expE);
        ocm.save();
       
        actE = (E) ocm.getObject"/someD");
       
        assertEquals(expE.getD1(), actE.getD1());       
       
  
        List messages = FakeBeanConverter.getLog();
        assertEquals(6, messages.size());
        assertEquals("insert at path /someD", messages.get(0));
View Full Code Here

        ObjectContentManager ocm = getObjectContentManager();
        B expB = new B();
        expB.setB1("b1value");
        expB.setB2("b2value");
        E expE = new E();
        expE.setPath("/someD");
        expE.setD1("d1value");
        expE.setB1(expB);


        ocm.insert( expE);
        ocm.save();

        E actE = (E) ocm.getObject( "/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setD1("updatedvalueD1");
        expB.setB1("updatedvalue1");

        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setB1(null);
        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());


        List messages = FakeBeanConverter.getLog();
        assertEquals(6, messages.size());
        assertEquals("insert at path /someD", messages.get(0));
View Full Code Here

        ObjectContentManager ocm = getObjectContentManager();
        B expB = new B();
        expB.setB1("b1value");
        expB.setB2("b2value");
        E expE = new E();
        expE.setPath("/someD");
        expE.setD1("d1value");
        expE.setB1(expB);


        ocm.insert( expE);
        ocm.save();

        E actE = (E) ocm.getObject( "/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setD1("updatedvalueD1");
        expB.setB1("updatedvalue1");

        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setB1(null);
        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());


        List messages = FakeBeanConverter.getLog();
        assertEquals(6, messages.size());
        assertEquals("insert at path /someD", messages.get(0));
View Full Code Here

    {

        B expB = new B();
        expB.setB1("b1value");
        expB.setB2("b2value");
        E expE = new E();
        expE.setPath("/someD");
        expE.setD1("d1value");
        expE.setB1(expB);


        ocm.insert( expE);
        ocm.save();

        E actE = (E) ocm.getObject( "/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setD1("updatedvalueD1");
        expB.setB1("updatedvalue1");

        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setB1(null);
        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());


        List messages = FakeBeanConverter.getLog();
        assertEquals(6, messages.size());
        assertEquals("insert at path /someD", messages.get(0));
View Full Code Here

    {

        B expB = new B();
        expB.setB1("b1value");
        expB.setB2("b2value");
        E expE = new E();
        expE.setPath("/someD");
        expE.setD1("d1value");
        expE.setB1(expB);


        ocm.insert( expE);
        ocm.save();

        E actE = (E) ocm.getObject( "/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setD1("updatedvalueD1");
        expB.setB1("updatedvalue1");

        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());

        expE.setB1(null);
        ocm.update( expE);
        ocm.save();

        actE = (E) ocm.getObject"/someD");

        assertEquals(expE.getD1(), actE.getD1());


        List messages = FakeBeanConverter.getLog();
        assertEquals(6, messages.size());
        assertEquals("insert at path /someD", messages.get(0));
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.testmodel.E

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.