mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/data/TestBaseFactoryObjectDataManager.java
@Test
    public void testSetPidNull() throws FactoryObjectInformationException, IllegalArgumentException, 
        PersistenceFailedException, InvalidProtocolBufferException
    {
        //mock factory object data entity
        UUID uuid = UUID.randomUUID();
        FactoryObjectData factData = createFactoryObjectData("name", null);
        createPersistentData(uuid, factData.toByteArray());
    
        try
        {
            m_SUT.setPid(uuid, null);
            fail("Expected exception");
        }
        catch (IllegalArgumentException e)
        {
            //expected exception PID cannot be set to null
        }
    }
/**
     * Verify exception if the PID being set is null.
     */
Verify exception if the PID being set is null.
Verify exception if the PID being set is null .
@Test
    public void testSetPidNull() throws FactoryObjectInformationException, IllegalArgumentException, 
        PersistenceFailedException, InvalidProtocolBufferException
    {
        UUID uuid = UUID.randomUUID();
        FactoryObjectData factData = createFactoryObjectData("name", null);
        createPersistentData(uuid, factData.toByteArray());
        try
        {
            m_SUT.setPid(uuid, null);
            fail("Expected exception");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testSetPidNull ( ) throws FactoryObjectInformationException , IllegalArgumentException , PersistenceFailedException , InvalidProtocolBufferException { UUID uuid = UUID . randomUUID ( ) ; FactoryObjectData factData = createFactoryObjectData ( "name" , null ) ; createPersistentData ( uuid , factData . toByteArray ( ) ) ; try { m_SUT . setPid ( uuid , null ) ; fail ( "Expected exception" ) ; } catch ( IllegalArgumentException e ) { } }
Verify exception if the PID being set is null.
Verify exception if the PID being set is null .
//mock factory object data entity //expected exception PID cannot be set to null