mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestAssetCommandUtil.java
@Test
    public void testInstantiateCommandBasedOnType() throws ClassNotFoundException, 
        InstantiationException, IllegalAccessException
    {
        Command command = AssetCommandUtil.instantiateCommandBasedOnType(
                CommandTypeEnum.GET_POSITION_COMMAND);
        assertThat(command, notNullValue());
        assertThat(command, instanceOf(GetPositionCommand.class));
    }
/**
     * Verify given a command type enum the correct command instance is returned.
     */
Verify given a command type enum the correct command instance is returned.
Verify given a command type enum the correct command instance is returned .
@Test
    public void testInstantiateCommandBasedOnType() throws ClassNotFoundException, 
        InstantiationException, IllegalAccessException
    {
        Command command = AssetCommandUtil.instantiateCommandBasedOnType(
                CommandTypeEnum.GET_POSITION_COMMAND);
        assertThat(command, notNullValue());
        assertThat(command, instanceOf(GetPositionCommand.class));
    }
@ Test public void testInstantiateCommandBasedOnType ( ) throws ClassNotFoundException , InstantiationException , IllegalAccessException { Command command = AssetCommandUtil . instantiateCommandBasedOnType ( CommandTypeEnum . GET_POSITION_COMMAND ) ; assertThat ( command , notNullValue ( ) ) ; assertThat ( command , instanceOf ( GetPositionCommand . class ) ) ; }
Verify given a command type enum the correct command instance is returned.
Verify given a command type enum the correct command instance is returned .