mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetDirectoryServiceImpl.java
@Test
    public void testGetAssets() throws IllegalArgumentException, 
        AssetException, FactoryException, FactoryObjectInformationException
    {
        Set<AssetInternal> set = new HashSet<AssetInternal>();
        set.add(mock(AssetInternal.class));
        when(m_Registry.getObjects()).thenReturn(set);
        
        Set<Asset> allAssets = m_SUT.getAssets();
        assertThat("Null Retrieved from getAssets method", allAssets, is(notNullValue()));
        assertThat(allAssets.size(), is(1));
    }
/**
     * Verify assets are returned if assets are created.
     */
Verify assets are returned if assets are created.
Verify assets are returned if assets are created .
@Test
    public void testGetAssets() throws IllegalArgumentException, 
        AssetException, FactoryException, FactoryObjectInformationException
    {
        Set<AssetInternal> set = new HashSet<AssetInternal>();
        set.add(mock(AssetInternal.class));
        when(m_Registry.getObjects()).thenReturn(set);
        Set<Asset> allAssets = m_SUT.getAssets();
        assertThat("Null Retrieved from getAssets method", allAssets, is(notNullValue()));
        assertThat(allAssets.size(), is(1));
    }
@ Test public void testGetAssets ( ) throws IllegalArgumentException , AssetException , FactoryException , FactoryObjectInformationException { Set < AssetInternal > set = new HashSet < AssetInternal > ( ) ; set . add ( mock ( AssetInternal . class ) ) ; when ( m_Registry . getObjects ( ) ) . thenReturn ( set ) ; Set < Asset > allAssets = m_SUT . getAssets ( ) ; assertThat ( "Null Retrieved from getAssets method" , allAssets , is ( notNullValue ( ) ) ) ; assertThat ( allAssets . size ( ) , is ( 1 ) ) ; }
Verify assets are returned if assets are created.
Verify assets are returned if assets are created .