Package org.cedj.geekseek.domain.model

Examples of org.cedj.geekseek.domain.model.Timestampable


        Assume.assumeTrue(domain instanceof Timestampable);

        commit(Void.class, new Store(domain));
        DOMAIN stored = commit(new Get(domain.getId()));

        Timestampable timed = (Timestampable)stored;

        Assert.assertNotNull(timed.getCreated());
        Assert.assertEquals(timed.getCreated(), timed.getLastModified());
    }
View Full Code Here


        commit(Void.class, new Store(domain));
        DOMAIN stored = commit(new Get(domain.getId()));
        stored = updateDomainObject(stored);
        stored = commit(new Get(domain.getId()));

        Timestampable timed = (Timestampable)stored;

        Assert.assertNotNull(timed.getCreated());
        Assert.assertNotSame(timed.getCreated(), timed.getLastModified());
    }
View Full Code Here

TOP

Related Classes of org.cedj.geekseek.domain.model.Timestampable

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.