mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/data/TestBaseFactoryObjectDataManager.java
@Test
    public void testGetName() throws FactoryObjectInformationException, IllegalArgumentException, 
        PersistenceFailedException, InvalidProtocolBufferException
    {
        //the name to use
        String name = "getThisName";
        
        //the UUID
        UUID uuid = UUID.randomUUID();
        
        //mock the persistent entry
        FactoryObjectData factData = createFactoryObjectData(name, null);
        createPersistentData(uuid, factData.toByteArray());

        //call to set a name
        String fetchedName = m_SUT.getName(uuid);
        
        //verify
        assertThat(name, is(fetchedName));
    }
/**
     * Verify the behavior of get name when there is data in the persistent data store for the given UUID.
     * - Method is expected to return the name set in the data
     */
Verify the behavior of get name when there is data in the persistent data store for the given UUID.
- Method is expected to return the name set in the data
Verify the behavior of get name when there is data in the persistent data store for the given UUID . - Method is expected to return the name set in the data
@Test
    public void testGetName() throws FactoryObjectInformationException, IllegalArgumentException, 
        PersistenceFailedException, InvalidProtocolBufferException
    {
        String name = "getThisName";
        UUID uuid = UUID.randomUUID();
        FactoryObjectData factData = createFactoryObjectData(name, null);
        createPersistentData(uuid, factData.toByteArray());
        String fetchedName = m_SUT.getName(uuid);
        assertThat(name, is(fetchedName));
    }
@ Test public void testGetName ( ) throws FactoryObjectInformationException , IllegalArgumentException , PersistenceFailedException , InvalidProtocolBufferException { String name = "getThisName" ; UUID uuid = UUID . randomUUID ( ) ; FactoryObjectData factData = createFactoryObjectData ( name , null ) ; createPersistentData ( uuid , factData . toByteArray ( ) ) ; String fetchedName = m_SUT . getName ( uuid ) ; assertThat ( name , is ( fetchedName ) ) ; }
Verify the behavior of get name when there is data in the persistent data store for the given UUID.
Verify the behavior of get name when there is data in the persistent data store for the given UUID .
//the name to use //the UUID //mock the persistent entry //call to set a name //verify