Package org.apache.isis.core.metamodel.testspec

Examples of org.apache.isis.core.metamodel.testspec.ObjectSpecificationStub


    @Before
    public void setUp() throws Exception {
        final ObjectSpecId objectSpecId = ObjectSpecId.of(objectType);
        oid = new RootOidDefault(objectSpecId, ""+1, State.TRANSIENT);

        spec = new ObjectSpecificationStub(this.getClass());
        spec.fields = Collections.emptyList();

        version = FileVersion.create("", System.currentTimeMillis());
        objectData = new ObjectData(oid, version);
        objectDataVector = new ObjectDataVector();
View Full Code Here


    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"));
        objectData.set("name", "value");
        assertEquals("value", objectData.get("name"));
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.testspec.ObjectSpecificationStub

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.