use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.
the class RegistryPackageTypeHelperTest method testGetPersonsFromRegistryObjectList.
@Test
public void testGetPersonsFromRegistryObjectList() throws Exception {
RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
List<PersonType> persons = rptHelper.getPersons(registryObjectList);
assertPersons(persons);
}
use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.
the class RegistryPackageTypeHelperTest method testGetBindingTypesFromRegistryObjectList.
@Test
public void testGetBindingTypesFromRegistryObjectList() throws Exception {
RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
List<ServiceBindingType> bindings = rptHelper.getBindingTypes(registryObjectList);
assertBindings(bindings);
}
use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.
the class RegistryPackageTypeHelperTest method testGetAssociationsFromRegistryObjectList.
@Test
public void testGetAssociationsFromRegistryObjectList() throws Exception {
RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
List<AssociationType1> associations = rptHelper.getAssociations(registryObjectList);
assertAssociations(associations);
}
use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.
the class RegistryPackageTypeHelperTest method testGetOrganizationsFromRegistryObjectList.
@Test
public void testGetOrganizationsFromRegistryObjectList() throws Exception {
RegistryObjectListType registryObjectList = ((RegistryPackageType) registryObject).getRegistryObjectList();
List<OrganizationType> organizations = rptHelper.getOrganizations(registryObjectList);
assertOrganizations(organizations);
}
use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectListType in project ddf by codice.
the class RegistryPackageWebConverterTest method getTestRegistryPackage.
private RegistryPackageType getTestRegistryPackage() {
RegistryPackageType registryPackage = RIM_FACTORY.createRegistryPackageType();
registryPackage.setId("urn:uuid:2014ca7f59ac46f495e32b4a67a51276");
registryPackage.setHome("https://somehost:someport");
registryPackage.setObjectType("urn:registry:federation:node");
registryPackage.getExternalIdentifier().add(getFirstExternalIdentifier());
registryPackage.getExternalIdentifier().add(getSecondExternalIdentifier());
RegistryObjectListType registryObjectList = RIM_FACTORY.createRegistryObjectListType();
registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getFirstExtrinsicObject()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getSecondExtrinsicObject()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getThirdExtrinsicObject()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createExtrinsicObject(getFourthExtrinsicObject()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createService(getService()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createOrganization(getFirstOrganization()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createOrganization(getSecondOrganization()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createPerson(getFirstPerson()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createPerson(getSecondPerson()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createPerson(getThirdPerson()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getFirstAssociation()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getSecondAssociation()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getThirdAssociation()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getFourthAssociation()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getFifthAssociation()));
registryObjectList.getIdentifiable().add(RIM_FACTORY.createAssociation(getSixthAssociation()));
registryPackage.setRegistryObjectList(registryObjectList);
return registryPackage;
}
Aggregations