mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetCommandMgrImpl.java
@Test
    public void testDoSyncUnsupportedCommand() throws ClassNotFoundException, InstantiationException, 
        IllegalAccessException
    {
        UUID assetUuid = UUID.randomUUID();
        AssetSyncableCommandModel commandModel = new AssetSyncableCommandModel(assetUuid, m_Capabilities);
        try
        {
            m_SUT.doSync(CONTROLLER_ID, commandModel, CommandTypeEnum.CAPTURE_IMAGE_COMMAND);
            fail("Illegal argument exception was expected since the specified command does not support syncing.");
        }
        catch (final IllegalArgumentException exception)
        {
            //expected exception
        }
    }
/**
     * Verify that trying to sync a command that does not support syncing results in an illegal argument exception.
     */
Verify that trying to sync a command that does not support syncing results in an illegal argument exception.
Verify that trying to sync a command that does not support syncing results in an illegal argument exception .
@Test
    public void testDoSyncUnsupportedCommand() throws ClassNotFoundException, InstantiationException, 
        IllegalAccessException
    {
        UUID assetUuid = UUID.randomUUID();
        AssetSyncableCommandModel commandModel = new AssetSyncableCommandModel(assetUuid, m_Capabilities);
        try
        {
            m_SUT.doSync(CONTROLLER_ID, commandModel, CommandTypeEnum.CAPTURE_IMAGE_COMMAND);
            fail("Illegal argument exception was expected since the specified command does not support syncing.");
        }
        catch (final IllegalArgumentException exception)
        {
        }
    }
@ Test public void testDoSyncUnsupportedCommand ( ) throws ClassNotFoundException , InstantiationException , IllegalAccessException { UUID assetUuid = UUID . randomUUID ( ) ; AssetSyncableCommandModel commandModel = new AssetSyncableCommandModel ( assetUuid , m_Capabilities ) ; try { m_SUT . doSync ( CONTROLLER_ID , commandModel , CommandTypeEnum . CAPTURE_IMAGE_COMMAND ) ; fail ( "Illegal argument exception was expected since the specified command does not support syncing." ) ; } catch ( final IllegalArgumentException exception ) { } }
Verify that trying to sync a command that does not support syncing results in an illegal argument exception.
Verify that trying to sync a command that does not support syncing results in an illegal argument exception .
//expected exception