mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/data/TestBaseFactoryObjectDataManager.java
@Test
    public void testGetPidNoFactData() throws FactoryObjectInformationException
    {
        // no need to mock, testing case with no data entry
        try
        {
            m_SUT.getPid(UUID.randomUUID());
            fail("No valid factory data for given UUID, IllegalArgumentException expected");
        }
        catch (IllegalArgumentException ex)
        {
            //expected exception, no valid factory data for the uuid
        }
    }
/**
     * Verify behavior if there is no data associated with the given UUID.
     * - an illegal argument exception should be thrown
     */
Verify behavior if there is no data associated with the given UUID.
- an illegal argument exception should be thrown
Verify behavior if there is no data associated with the given UUID . - an illegal argument exception should be thrown
@Test
    public void testGetPidNoFactData() throws FactoryObjectInformationException
    {
        try
        {
            m_SUT.getPid(UUID.randomUUID());
            fail("No valid factory data for given UUID, IllegalArgumentException expected");
        }
        catch (IllegalArgumentException ex)
        {
        }
    }
@ Test public void testGetPidNoFactData ( ) throws FactoryObjectInformationException { try { m_SUT . getPid ( UUID . randomUUID ( ) ) ; fail ( "No valid factory data for given UUID, IllegalArgumentException expected" ) ; } catch ( IllegalArgumentException ex ) { } }
Verify behavior if there is no data associated with the given UUID.
Verify behavior if there is no data associated with the given UUID .
// no need to mock, testing case with no data entry //expected exception, no valid factory data for the uuid