mil.dod.th.ose.datastream/test/mil/dod/th/ose/datastream/TestStreamProfileServiceProxy.java
@Test
    public void testBeforeAddFactory() throws FactoryException
    {
        String factoryPid = "some.factory.pid";
        when(m_Factory.getPid()).thenReturn(factoryPid);
        
        m_SUT.beforeAddFactory(m_FactoryServiceContext, m_Factory);
        
        verify(m_ConfigListener).registerConfigListener(factoryPid);
    }
/**
     * Verify that a configuration listener is registered for the factory being added.
     */
Verify that a configuration listener is registered for the factory being added.
Verify that a configuration listener is registered for the factory being added .
@Test
    public void testBeforeAddFactory() throws FactoryException
    {
        String factoryPid = "some.factory.pid";
        when(m_Factory.getPid()).thenReturn(factoryPid);
        m_SUT.beforeAddFactory(m_FactoryServiceContext, m_Factory);
        verify(m_ConfigListener).registerConfigListener(factoryPid);
    }
@ Test public void testBeforeAddFactory ( ) throws FactoryException { String factoryPid = "some.factory.pid" ; when ( m_Factory . getPid ( ) ) . thenReturn ( factoryPid ) ; m_SUT . beforeAddFactory ( m_FactoryServiceContext , m_Factory ) ; verify ( m_ConfigListener ) . registerConfigListener ( factoryPid ) ; }
Verify that a configuration listener is registered for the factory being added.
Verify that a configuration listener is registered for the factory being added .