Search in sources :

Example 1 with PartyRelationship

use of org.estatio.module.party.dom.relationship.PartyRelationship in project estatio by estatio.

the class PartyRelationshipType_Test method createFor.

@Test
public void createFor() {
    Person p = new Person();
    Organisation o = new Organisation();
    PartyRelationship pr = PartyRelationshipTypeEnum.createWithToTitle(o, p, PartyRelationshipTypeEnum.EMPLOYMENT.toTitle());
    assertThat((Organisation) pr.getFrom()).isEqualTo(o);
}
Also used : PartyRelationship(org.estatio.module.party.dom.relationship.PartyRelationship) Organisation(org.estatio.module.party.dom.Organisation) Person(org.estatio.module.party.dom.Person) Test(org.junit.Test)

Aggregations

Organisation (org.estatio.module.party.dom.Organisation)1 Person (org.estatio.module.party.dom.Person)1 PartyRelationship (org.estatio.module.party.dom.relationship.PartyRelationship)1 Test (org.junit.Test)1