mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetDirectoryServiceImpl.java
@Test
    public void testGetAssetFactoryDescriptors()
    {
        when(m_ServiceContext.getFactories()).thenReturn(m_AssetFactories);
        
        Set<AssetFactory> expectedFactories = 
                new HashSet<AssetFactory>(m_AssetFactories.values());
        Set<AssetFactory> factories = m_SUT.getAssetFactories();
        assertThat(factories, is(expectedFactories));
    }
/**
     * Test the service will return the factory descriptors for all registered factories.
     */
Test the service will return the factory descriptors for all registered factories.
Test the service will return the factory descriptors for all registered factories .
@Test
    public void testGetAssetFactoryDescriptors()
    {
        when(m_ServiceContext.getFactories()).thenReturn(m_AssetFactories);
        Set<AssetFactory> expectedFactories = 
                new HashSet<AssetFactory>(m_AssetFactories.values());
        Set<AssetFactory> factories = m_SUT.getAssetFactories();
        assertThat(factories, is(expectedFactories));
    }
@ Test public void testGetAssetFactoryDescriptors ( ) { when ( m_ServiceContext . getFactories ( ) ) . thenReturn ( m_AssetFactories ) ; Set < AssetFactory > expectedFactories = new HashSet < AssetFactory > ( m_AssetFactories . values ( ) ) ; Set < AssetFactory > factories = m_SUT . getAssetFactories ( ) ; assertThat ( factories , is ( expectedFactories ) ) ; }
Test the service will return the factory descriptors for all registered factories.
Test the service will return the factory descriptors for all registered factories .