// More tests not described above ...
try
{
// This is a new DomainURI that we haven't used yet ...
DomainURI domainURI = DomainURI.valueByString(uris[5]);
// Make up a PropertyDefinition that matches propertyDefinitionImpls.get(0) in
// PropertyCategory but not DomainURI.
PropertyDefinition newPropDef =
new PropertyDefinitionImpl(propertyDefinitionImpls.get(0).getCategory(), domainURI);
// Calculate the result from a compareTo of this new PropertyDefinition (anotherOne) and the
// pre-constructed one that has the same PropertyCategory.
int result =
newPropDef.compareTo(propertyDefinitionImpls.get(0));
// The above result should be equal to the compareTo for the DomainURI
assertTrue
( result ==
(domainURI.compareTo(propertyDefinitionImpls.get(0).getTypedefURI()))
);
}
catch (IllegalArgumentException e)
{