mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/data/TestBaseFactoryObjectDataManager.java
@Test
    public void testSetNameNoData() throws FactoryObjectInformationException
    {
        //no need to mock the data, its not in the data store
        UUID uuid = UUID.randomUUID();
    
        //call to set a name
        try
        {
            m_SUT.setName(uuid, "cantSetMe");
            fail("Expecting exception, UUID is not associated with any data store entries.");
        }
        catch (IllegalArgumentException e)
        {
            //exception expected
        }
    }
/**
     * Verify the behavior of set name if the factory object data does not exist for the given UUID.
     * - An illegal argument exception should be thrown
     */
Verify the behavior of set name if the factory object data does not exist for the given UUID.
- An illegal argument exception should be thrown
Verify the behavior of set name if the factory object data does not exist for the given UUID . - An illegal argument exception should be thrown
@Test
    public void testSetNameNoData() throws FactoryObjectInformationException
    {
        UUID uuid = UUID.randomUUID();
        try
        {
            m_SUT.setName(uuid, "cantSetMe");
            fail("Expecting exception, UUID is not associated with any data store entries.");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testSetNameNoData ( ) throws FactoryObjectInformationException { UUID uuid = UUID . randomUUID ( ) ; try { m_SUT . setName ( uuid , "cantSetMe" ) ; fail ( "Expecting exception, UUID is not associated with any data store entries." ) ; } catch ( IllegalArgumentException e ) { } }
Verify the behavior of set name if the factory object data does not exist for the given UUID.
Verify the behavior of set name if the factory object data does not exist for the given UUID .
//no need to mock the data, its not in the data store //call to set a name //exception expected