mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/data/TestBaseFactoryObjectDataManager.java
@Test
    public void testGetPid() throws FactoryObjectInformationException
    {
        //mock factory object information
        UUID uuid = UUID.randomUUID();
        FactoryObjectData factData = createFactoryObjectData("name", "correctPid");
        createPersistentData(uuid, factData.toByteArray());
    
        //retrieve the PID
        String pid = m_SUT.getPid(uuid);
    
        assertThat(pid, is("correctPid"));
    }
/**
     * Verify setPid functions as expected.
     * - given a UUID associated with data in the data store the pid should be retrieved accurately
     */
Verify setPid functions as expected.
- given a UUID associated with data in the data store the pid should be retrieved accurately
Verify setPid functions as expected . - given a UUID associated with data in the data store the pid should be retrieved accurately
@Test
    public void testGetPid() throws FactoryObjectInformationException
    {
        UUID uuid = UUID.randomUUID();
        FactoryObjectData factData = createFactoryObjectData("name", "correctPid");
        createPersistentData(uuid, factData.toByteArray());
        String pid = m_SUT.getPid(uuid);
        assertThat(pid, is("correctPid"));
    }
@ Test public void testGetPid ( ) throws FactoryObjectInformationException { UUID uuid = UUID . randomUUID ( ) ; FactoryObjectData factData = createFactoryObjectData ( "name" , "correctPid" ) ; createPersistentData ( uuid , factData . toByteArray ( ) ) ; String pid = m_SUT . getPid ( uuid ) ; assertThat ( pid , is ( "correctPid" ) ) ; }
Verify setPid functions as expected.
Verify setPid functions as expected .
//mock factory object information //retrieve the PID