Examples of ReferencingEntity


Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

        return new InMemoryPersistenceMechanismInstaller();
    }

    @Test
    public void persistAggregatedEntityWithinCollection() throws Exception {
        final ReferencingEntity referencingEntity = iswf.fixtures.rfcg2;
        referencingEntity.addAggregatedEntityToCollection().setName("Aggregated Entity #1");
        iswf.persist(referencingEntity);
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

    }
   

    @Test
    public void persistAggregatedEntityWithinProperty() throws Exception {
        final ReferencingEntity referencingEntity = iswf.fixtures.rfcg2;
        referencingEntity.addAggregatedReference().setName("Aggregated Entity #1");
        iswf.persist(referencingEntity);
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

    }

    @Test
    public void recreateObject_referencePreserved() throws Exception {
        recreatedAdapter = mementoForEpr1.recreateObject();
        final ReferencingEntity recreatedObject = (ReferencingEntity)recreatedAdapter.getObject();
        final SimpleEntity reference1 = recreatedObject.getReference();
        assertNotNull(reference1);
       
        assertThat("Fred", equalTo(reference1.getName()));
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

       
        assertThat(hetrogenousCollection.size(), is(2));
        final SimpleEntity firstObj = (SimpleEntity)hetrogenousCollection.get(0);
        assertThat(firstObj.getName(), is("Fred"));
       
        final ReferencingEntity secondObj = (ReferencingEntity)hetrogenousCollection.get(1);
        final SimpleEntity reference1 = secondObj.getReference();
        assertThat(reference1.getName(), is("Fred"));
       
        assertSame(firstObj, reference1);
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

        final ObjectAdapter readObject = objectReader.load(reader2, versionCreator, dataEncrypter);
        assertEquals(oid4, readObject.getOid());
        assertEquals(ResolveState.RESOLVED, readObject.getResolveState());

        final ReferencingEntity pojo = (ReferencingEntity) readObject.getObject();
        assertEquals(null, pojo.getAggregatedReference());
        assertThat(pojo.getReference(), CoreMatchers.instanceOf(SimpleEntity.class));

        context.assertIsSatisfied();
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

    }

    @Test
    public void recreateObject_referencePreserved() throws Exception {
        recreatedAdapter = mementoForEpr1.recreateObject();
        final ReferencingEntity recreatedObject = (ReferencingEntity)recreatedAdapter.getObject();
        final SimpleEntity reference1 = recreatedObject.getReference();
        assertNotNull(reference1);
       
        assertThat("Fred", equalTo(reference1.getName()));
    }
View Full Code Here

Examples of org.apache.isis.core.tck.dom.refs.ReferencingEntity

       
        assertThat(hetrogenousCollection.size(), is(2));
        final SimpleEntity firstObj = (SimpleEntity)hetrogenousCollection.get(0);
        assertThat(firstObj.getName(), is("Fred"));
       
        final ReferencingEntity secondObj = (ReferencingEntity)hetrogenousCollection.get(1);
        final SimpleEntity reference1 = secondObj.getReference();
        assertThat(reference1.getName(), is("Fred"));
       
        assertSame(firstObj, reference1);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.