Package org.apache.isis.runtimes.dflt.objectstores.xml.internal.clock

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.clock.DefaultClock


        mockAdapter = context.mock(ObjectAdapter.class);
        // system
        dataManager = new MockDataManager();
        objectStore = new XmlObjectStore(dataManager, new DummyServiceManager());
        objectStore.setClock(new DefaultClock());

        // objects
        configuration = new TestProxyConfiguration();
        spec = new TestProxySpecification(this.getClass());
        spec.fields = Collections.emptyList();
View Full Code Here


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

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

        FileVersion.setClock(new DefaultClock());

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

        final ObjectSpecification type = system.getSpecification(Object.class);
View Full Code Here

import org.apache.isis.runtimes.dflt.runtime.persistence.oidgenerator.simple.SerialOid;

public class ObjectDataTest extends TestCase {

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

        final TestProxySpecification type = new TestProxySpecification("test");
        final ObjectData objectData = new ObjectData(type, SerialOid.createPersistent(13), new FileVersion(""));

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

    @Override
    protected void setUp() throws Exception {
        super.setUp();

        FileVersion.setClock(new DefaultClock());

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

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

        mockAdapter = context.mock(ObjectAdapter.class);
        // system
        dataManager = new MockDataManager();
        objectStore = new XmlObjectStore(dataManager, new DummyServiceManager());
        objectStore.setClock(new DefaultClock());

        // objects
        configuration = new TestProxyConfiguration();
        spec = new TestProxySpecification(this.getClass());
        spec.fields = Collections.emptyList();
View Full Code Here

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

        FileVersion.setClock(new DefaultClock());

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

        final ObjectSpecification type = system.getSpecification(Object.class);
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();

        FileVersion.setClock(new DefaultClock());

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

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.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.