mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/data/TestAssetFactoryObjectDataManagerImpl.java
@Test
    public void testGetCoordinatesNoCords() throws FactoryObjectInformationException
    {        
        //activate to create converters 
        m_SUT.activate();
        
        //persisted message
        m_FactData = FactoryObjectData.newBuilder().
                setName("original").build();
        when(m_PersistentData.getEntity()).thenReturn(m_FactData.toByteArray());
        when(m_PersistentData.getUUID()).thenReturn(m_UUID);
        
        when(m_PersistentDataStore.find(m_UUID)).thenReturn(m_PersistentData);
        
        Map<String, Coordinates> newCoords = m_SUT.getCoordinates(m_UUID);
        
        //verify
        assertThat(newCoords.size(), is(0));
    }
/**
     * Verify getting the coordinates for an asset when there is no coordinate information.
     */
Verify getting the coordinates for an asset when there is no coordinate information.
Verify getting the coordinates for an asset when there is no coordinate information .
@Test
    public void testGetCoordinatesNoCords() throws FactoryObjectInformationException
    {        
        m_SUT.activate();
        m_FactData = FactoryObjectData.newBuilder().
                setName("original").build();
        when(m_PersistentData.getEntity()).thenReturn(m_FactData.toByteArray());
        when(m_PersistentData.getUUID()).thenReturn(m_UUID);
        when(m_PersistentDataStore.find(m_UUID)).thenReturn(m_PersistentData);
        Map<String, Coordinates> newCoords = m_SUT.getCoordinates(m_UUID);
        assertThat(newCoords.size(), is(0));
    }
@ Test public void testGetCoordinatesNoCords ( ) throws FactoryObjectInformationException { m_SUT . activate ( ) ; m_FactData = FactoryObjectData . newBuilder ( ) . setName ( "original" ) . build ( ) ; when ( m_PersistentData . getEntity ( ) ) . thenReturn ( m_FactData . toByteArray ( ) ) ; when ( m_PersistentData . getUUID ( ) ) . thenReturn ( m_UUID ) ; when ( m_PersistentDataStore . find ( m_UUID ) ) . thenReturn ( m_PersistentData ) ; Map < String , Coordinates > newCoords = m_SUT . getCoordinates ( m_UUID ) ; assertThat ( newCoords . size ( ) , is ( 0 ) ) ; }
Verify getting the coordinates for an asset when there is no coordinate information.
Verify getting the coordinates for an asset when there is no coordinate information .
//activate to create converters  //persisted message //verify