mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestCommandNodeModel.java
@Test
    public void testGetValue() throws ReflectionsUtilException
    {
        //Test getting standard value.
        assertThat(m_SUT.getValue(), is((Object)5));
        
        //Test getting boolean value.
        m_SUT.setType(boolean.class);
        m_SUT.setName("boolField");
        assertThat(m_SUT.getValue(), is((Object)true));
        
        //Test getting wrapped boolean value.
        m_SUT.setType(Boolean.class);
        m_SUT.setName("wrapBoolField");
        assertThat(m_SUT.getValue(), is((Object)false));
        
        //Test getting list value.
        m_SUT = new CommandNodeModel("listField", Integer.class, false, m_IntList, m_GrowlUtil);
        m_SUT.setIndex(2);
        assertThat(m_SUT.getValue(), is((Object)12));
        
        //Test getting optional integer value with getter method that returns a primitive int.
        m_SUT = new CommandNodeModel("wrapIntField", Integer.class, false, m_TestObject, m_GrowlUtil);
        assertThat(m_SUT.getValue(), is((Object)""));
    }
/**
     * Test the get value method.
     * Verify that the get value method returns the appropriate value for the various class types. 
     */
Test the get value method.
Verify that the get value method returns the appropriate value for the various class types.
Test the get value method . Verify that the get value method returns the appropriate value for the various class types .
@Test
    public void testGetValue() throws ReflectionsUtilException
    {
        assertThat(m_SUT.getValue(), is((Object)5));
        m_SUT.setType(boolean.class);
        m_SUT.setName("boolField");
        assertThat(m_SUT.getValue(), is((Object)true));
        m_SUT.setType(Boolean.class);
        m_SUT.setName("wrapBoolField");
        assertThat(m_SUT.getValue(), is((Object)false));
        m_SUT = new CommandNodeModel("listField", Integer.class, false, m_IntList, m_GrowlUtil);
        m_SUT.setIndex(2);
        assertThat(m_SUT.getValue(), is((Object)12));
        m_SUT = new CommandNodeModel("wrapIntField", Integer.class, false, m_TestObject, m_GrowlUtil);
        assertThat(m_SUT.getValue(), is((Object)""));
    }
@ Test public void testGetValue ( ) throws ReflectionsUtilException { assertThat ( m_SUT . getValue ( ) , is ( ( Object ) 5 ) ) ; m_SUT . setType ( boolean . class ) ; m_SUT . setName ( "boolField" ) ; assertThat ( m_SUT . getValue ( ) , is ( ( Object ) true ) ) ; m_SUT . setType ( Boolean . class ) ; m_SUT . setName ( "wrapBoolField" ) ; assertThat ( m_SUT . getValue ( ) , is ( ( Object ) false ) ) ; m_SUT = new CommandNodeModel ( "listField" , Integer . class , false , m_IntList , m_GrowlUtil ) ; m_SUT . setIndex ( 2 ) ; assertThat ( m_SUT . getValue ( ) , is ( ( Object ) 12 ) ) ; m_SUT = new CommandNodeModel ( "wrapIntField" , Integer . class , false , m_TestObject , m_GrowlUtil ) ; assertThat ( m_SUT . getValue ( ) , is ( ( Object ) "" ) ) ; }
Test the get value method.
Test the get value method .
//Test getting standard value. //Test getting boolean value. //Test getting wrapped boolean value. //Test getting list value. //Test getting optional integer value with getter method that returns a primitive int.