public void testResolveVersion() { System.out.println("\nEntering testResolveVersion():\n"); String version = DomainModel.resolveVersion(UID1); assertEquals("1-8-2006", version); version = DomainModel.resolveVersion(UID2); assertNull(version); System.out.println("testResolveVersion()... test passed!"); }
public void testGetUniqueIdentifier() { String uid = ""; try { uid = DomainModel.getUniqueIdentifier( "iris.irri.org", DomainModel.getNameSpace(GermplasmBaseConstants.DATATYPE_ID), "110", "1-8-2006"); } catch (GCPException ge) { fail(ge.getMessage()); } assertEquals(UID1, uid); }
public void testResolveDataType() { System.out.println("\nEntering testResolveDataType():\n"); try { String dataTypeID = DomainModel.resolveDataType(UID1); assertNotNull(dataTypeID); assertEquals(GermplasmBaseConstants.DATATYPE_ID, dataTypeID); System.out.println("UID1: '" + UID1 + "' => dataTypeID: '" + dataTypeID + "'"); dataTypeID = DomainModel.resolveDataType(UID2); assertNotNull(dataTypeID); assertEquals(GermplasmBaseConstants.DATATYPE_ID, dataTypeID); System.out.println("UID2: '" + UID2 + "' => dataTypeID: '" + dataTypeID + "'"); dataTypeID = DomainModel.resolveDataType(UID3); assertNotNull(dataTypeID); assertEquals(GermplasmBaseConstants.DATATYPE_ID, dataTypeID); System.out.println("UID3: '" + UID3 + "' => dataTypeID: '" + dataTypeID + "'"); } catch (GCPException ge) { fail(ge.getMessage()); } System.out.println("testResolveDataType()... test passed!"); }
public void testResolveObjectID() { System.out.println("\nEntering testResolveObjectID():\n"); String objectId = DomainModel.resolveObjectIdentifier(UID1); assertEquals("110", objectId); System.out.println("testResolveObjectID()... test passed!"); }
public void testResolveAuthority() { System.out.println("\nEntering testResolveAuthority():\n"); String authority = DomainModel.resolveAuthority(UID1); assertEquals("iris.irri.org", authority); System.out.println("testResolveAuthority()... test passed!"); }