mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestAddressManagerServiceImpl.java
@SuppressWarnings("unchecked")
    @Test
    public void testCreateAddressProperties() throws FactoryException, CCommException, InterruptedException, 
        IOException, IllegalArgumentException, FactoryObjectInformationException, ClassNotFoundException
    {
        // replay
        m_SUT.getOrCreateAddress("Base:blah");
        
        verify(m_Manager).getAddressTranslator(m_Factory.getProductType());
        
        // verify service helper is passed
        verify(m_WakeLock).activate();
        verify(m_Registry).createNewObject(eq(m_Factory), anyString(), Mockito.any(Map.class));
        verify(m_WakeLock).cancel();
    }
/**
     * Test that the helper service is passed to the factory during the create operation.
     */
Test that the helper service is passed to the factory during the create operation.
Test that the helper service is passed to the factory during the create operation .
@SuppressWarnings("unchecked")
    @Test
    public void testCreateAddressProperties() throws FactoryException, CCommException, InterruptedException, 
        IOException, IllegalArgumentException, FactoryObjectInformationException, ClassNotFoundException
    {
        m_SUT.getOrCreateAddress("Base:blah");
        verify(m_Manager).getAddressTranslator(m_Factory.getProductType());
        verify(m_WakeLock).activate();
        verify(m_Registry).createNewObject(eq(m_Factory), anyString(), Mockito.any(Map.class));
        verify(m_WakeLock).cancel();
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testCreateAddressProperties ( ) throws FactoryException , CCommException , InterruptedException , IOException , IllegalArgumentException , FactoryObjectInformationException , ClassNotFoundException { m_SUT . getOrCreateAddress ( "Base:blah" ) ; verify ( m_Manager ) . getAddressTranslator ( m_Factory . getProductType ( ) ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_Registry ) . createNewObject ( eq ( m_Factory ) , anyString ( ) , Mockito . any ( Map . class ) ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Test that the helper service is passed to the factory during the create operation.
Test that the helper service is passed to the factory during the create operation .
// replay // verify service helper is passed