Package org.apache.isis.core.tck.dom.scalars

Examples of org.apache.isis.core.tck.dom.scalars.ApplibValuedEntity


    @Test
    public void persist_then_update() throws Exception {
        iswf.beginTran();
       
        ApplibValuedEntity entity = repo.newEntity();
        entity.setStringProperty("1");

        Date date = new Date();
        entity.setDateProperty(date);
       
        iswf.commitTran();

        iswf.bounceSystem();
       
        iswf.beginTran();
        entity = repo.list().get(0);
        assertThat(entity.getDateProperty().dateValue(), is(date.dateValue()));
       
        date = date.add(-1, -1, -1);
        entity.setDateProperty(date);
       
        iswf.commitTran();

        iswf.bounceSystem();
       
        iswf.beginTran();
        entity = repo.list().get(0);
        assertThat(entity.getDateProperty().dateValue(), is(date.dateValue()));
       
        iswf.commitTran();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.tck.dom.scalars.ApplibValuedEntity

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.