mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestAddressServiceProxy.java
@Test
    public void testGetAdditionalServiceRegProps()
    {
        when(factory.getAddressCapabilities()).thenReturn(new AddressCapabilities().withPrefix("test-prefix"));
        
        Dictionary<String, Object> props = new Hashtable<>();
        props.put(FactoryDescriptor.FACTORY_TYPE_SERVICE_PROPERTY, AddressFactory.class);
        props.put(AddressFactory.ADDRESS_FACTORY_PREFIX_SERVICE_PROPERTY, "test-prefix");
        assertThat(m_SUT.getAdditionalFactoryRegistrationProps(factory).equals(props), is(true));
    }
/**
     * Verify dictionary with factory type is returned for additional registration properties.
     */
Verify dictionary with factory type is returned for additional registration properties.
Verify dictionary with factory type is returned for additional registration properties .
@Test
    public void testGetAdditionalServiceRegProps()
    {
        when(factory.getAddressCapabilities()).thenReturn(new AddressCapabilities().withPrefix("test-prefix"));
        Dictionary<String, Object> props = new Hashtable<>();
        props.put(FactoryDescriptor.FACTORY_TYPE_SERVICE_PROPERTY, AddressFactory.class);
        props.put(AddressFactory.ADDRESS_FACTORY_PREFIX_SERVICE_PROPERTY, "test-prefix");
        assertThat(m_SUT.getAdditionalFactoryRegistrationProps(factory).equals(props), is(true));
    }
@ Test public void testGetAdditionalServiceRegProps ( ) { when ( factory . getAddressCapabilities ( ) ) . thenReturn ( new AddressCapabilities ( ) . withPrefix ( "test-prefix" ) ) ; Dictionary < String , Object > props = new Hashtable < > ( ) ; props . put ( FactoryDescriptor . FACTORY_TYPE_SERVICE_PROPERTY , AddressFactory . class ) ; props . put ( AddressFactory . ADDRESS_FACTORY_PREFIX_SERVICE_PROPERTY , "test-prefix" ) ; assertThat ( m_SUT . getAdditionalFactoryRegistrationProps ( factory ) . equals ( props ) , is ( true ) ) ; }
Verify dictionary with factory type is returned for additional registration properties.
Verify dictionary with factory type is returned for additional registration properties .