mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestAssetCommandUtil.java
@Test
    public void testCreateMessageBuilderFromCommandType() throws NoSuchMethodException, 
        SecurityException, ClassNotFoundException, IllegalAccessException, 
        IllegalArgumentException, InvocationTargetException
    {
        Message.Builder builder = AssetCommandUtil.
                createMessageBuilderFromCommandType(GetPositionCommandGen.GetPositionCommand.class);
        
        assertThat(builder, notNullValue());
        assertThat(builder, instanceOf(GetPositionCommandGen.GetPositionCommand.Builder.class));
        //Verify that the base command was set.
        assertThat(((GetPositionCommandGen.GetPositionCommand.Builder)builder).getBase(), notNullValue());
    }
/**
     * Verify a given class name, the correct message builder instance will be returned.
     */
Verify a given class name, the correct message builder instance will be returned.
Verify a given class name the correct message builder instance will be returned .
@Test
    public void testCreateMessageBuilderFromCommandType() throws NoSuchMethodException, 
        SecurityException, ClassNotFoundException, IllegalAccessException, 
        IllegalArgumentException, InvocationTargetException
    {
        Message.Builder builder = AssetCommandUtil.
                createMessageBuilderFromCommandType(GetPositionCommandGen.GetPositionCommand.class);
        assertThat(builder, notNullValue());
        assertThat(builder, instanceOf(GetPositionCommandGen.GetPositionCommand.Builder.class));
        assertThat(((GetPositionCommandGen.GetPositionCommand.Builder)builder).getBase(), notNullValue());
    }
@ Test public void testCreateMessageBuilderFromCommandType ( ) throws NoSuchMethodException , SecurityException , ClassNotFoundException , IllegalAccessException , IllegalArgumentException , InvocationTargetException { Message . Builder builder = AssetCommandUtil . createMessageBuilderFromCommandType ( GetPositionCommandGen . GetPositionCommand . class ) ; assertThat ( builder , notNullValue ( ) ) ; assertThat ( builder , instanceOf ( GetPositionCommandGen . GetPositionCommand . Builder . class ) ) ; assertThat ( ( ( GetPositionCommandGen . GetPositionCommand . Builder ) builder ) . getBase ( ) , notNullValue ( ) ) ; }
Verify a given class name, the correct message builder instance will be returned.
Verify a given class name the correct message builder instance will be returned .
//Verify that the base command was set.