mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetDirectoryServiceImpl.java
@Test
    public void testCreateAssetWithInvalidProductType() throws AssetException
    {
        try
        {
            m_SUT.createAsset("blah");
            fail("Expecting failure because product type name is invalid");
        }
        catch (IllegalArgumentException e)
        {
            
        }
        
        try
        {
            m_SUT.createAsset("blah", "valid-name");
            fail("Expecting failure because product type name is invalid");
        }
        catch (IllegalArgumentException e)
        {
            
        }
    }
/**
     * Verify an invalidate product type name will cause an exception.
     */
Verify an invalidate product type name will cause an exception.
Verify an invalidate product type name will cause an exception .
@Test
    public void testCreateAssetWithInvalidProductType() throws AssetException
    {
        try
        {
            m_SUT.createAsset("blah");
            fail("Expecting failure because product type name is invalid");
        }
        catch (IllegalArgumentException e)
        {
        }
        try
        {
            m_SUT.createAsset("blah", "valid-name");
            fail("Expecting failure because product type name is invalid");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public void testCreateAssetWithInvalidProductType ( ) throws AssetException { try { m_SUT . createAsset ( "blah" ) ; fail ( "Expecting failure because product type name is invalid" ) ; } catch ( IllegalArgumentException e ) { } try { m_SUT . createAsset ( "blah" , "valid-name" ) ; fail ( "Expecting failure because product type name is invalid" ) ; } catch ( IllegalArgumentException e ) { } }
Verify an invalidate product type name will cause an exception.
Verify an invalidate product type name will cause an exception .