mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetDirectoryServiceImpl.java
@Test
    public void testIsAssetAvailable() throws AssetException
    {
        when(m_Registry.isObjectCreated("blah")).thenReturn(false);
        assertThat(m_SUT.isAssetAvailable("blah"), is(false));
        
        when(m_Registry.isObjectCreated("name")).thenReturn(true);
        assertThat(m_SUT.isAssetAvailable("name"), is(true));
    }
/**
     * Verify that if a request to find out if an asset is available is made that a null value throws an exception.
     * Verify that the expected value is returned if the requested, named, asset is found.
     */
Verify that if a request to find out if an asset is available is made that a null value throws an exception.
Verify that the expected value is returned if the requested, named, asset is found.
Verify that if a request to find out if an asset is available is made that a null value throws an exception . Verify that the expected value is returned if the requested named asset is found .
@Test
    public void testIsAssetAvailable() throws AssetException
    {
        when(m_Registry.isObjectCreated("blah")).thenReturn(false);
        assertThat(m_SUT.isAssetAvailable("blah"), is(false));
        when(m_Registry.isObjectCreated("name")).thenReturn(true);
        assertThat(m_SUT.isAssetAvailable("name"), is(true));
    }
@ Test public void testIsAssetAvailable ( ) throws AssetException { when ( m_Registry . isObjectCreated ( "blah" ) ) . thenReturn ( false ) ; assertThat ( m_SUT . isAssetAvailable ( "blah" ) , is ( false ) ) ; when ( m_Registry . isObjectCreated ( "name" ) ) . thenReturn ( true ) ; assertThat ( m_SUT . isAssetAvailable ( "name" ) , is ( true ) ) ; }
Verify that if a request to find out if an asset is available is made that a null value throws an exception.
Verify that if a request to find out if an asset is available is made that a null value throws an exception .