Package org.apache.isis.objectstore.xml.internal.clock

Examples of org.apache.isis.objectstore.xml.internal.clock.DefaultClock


public class ObjectDataTest extends TestCase {

    private String objectType = "CLK";

    public void testValueField() {
        FileVersion.setClock(new DefaultClock());

        final ObjectSpecificationStub type = new ObjectSpecificationStub("test");
        final ObjectData objectData = new ObjectData(RootOidDefault.create(ObjectSpecId.of(objectType), ""+13), FileVersion.create(""));

        assertEquals(null, objectData.get("name"));
View Full Code Here


    protected XmlDataManager manager;

    @Before
    public void setUp() throws Exception {
        FileVersion.setClock(new DefaultClock());

        clearTestDirectory();
        final String charset = Utils.lookupCharset(iswf.getIsisSystem().getConfiguration());
        manager = new XmlDataManager(new XmlFile(charset, "tmp/tests"));
    }
View Full Code Here

    @Override
    protected ObjectStoreSpi createObjectStore(final IsisConfiguration configuration, final ObjectAdapterFactory objectFactory, final AdapterManagerSpi adapterManager) {
        if (objectStore == null) {
            objectStore = new XmlObjectStore(configuration);
            objectStore.setClock(new DefaultClock());
        }
        return objectStore;
    }
View Full Code Here

        clearTestDirectory();
        final String charset = Utils.lookupCharset(iswf.getIsisSystem().getConfiguration());
        manager = new XmlDataManager(new XmlFile(charset, "tmp/tests"));

        FileVersion.setClock(new DefaultClock());

        oids = new RootOid[SIZE];
        data = new ObjectData[SIZE];

        pattern = new ObjectData(RootOidDefault.deString("RLE:1", new OidMarshaller()), FileVersion.create("user", 13));
View Full Code Here

    @Before
    public void setUpSystem() throws Exception {

        // system
        objectStore = iswf.getObjectStore(XmlObjectStore.class);
        objectStore.setClock(new DefaultClock());

        // objects
//        adapter.setOptimisticLock(new SerialNumberVersion(23, null, null));
//        adapter.setupOid(RootOidDefault.createPersistent(objectType, ""+1));
       
View Full Code Here

TOP

Related Classes of org.apache.isis.objectstore.xml.internal.clock.DefaultClock

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.