mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void tesRetrievetIsSetMethod() throws IllegalArgumentException, IllegalAccessException, 
        InvocationTargetException
    {
        Method methodDNE = ReflectionsUtil.retrieveIsSetMethod(m_Obj, "DoesNotExist");
        assertThat(methodDNE, is(nullValue()));
        
        Method isSetMethod = ReflectionsUtil.retrieveIsSetMethod(m_Obj, "TestInteger");
        assertThat(isSetMethod, is(notNullValue()));
        
        boolean isSet = (Boolean)isSetMethod.invoke(m_Obj, new Object[] {});
        assertThat(isSet, is(true));
    }
/**
     * Verify that the isSet method will return null if the method does not exist and a correct method name returns
     * a valid method.
     */
Verify that the isSet method will return null if the method does not exist and a correct method name returns
a valid method.
Verify that the isSet method will return null if the method does not exist and a correct method name returns a valid method .
@Test
    public void tesRetrievetIsSetMethod() throws IllegalArgumentException, IllegalAccessException, 
        InvocationTargetException
    {
        Method methodDNE = ReflectionsUtil.retrieveIsSetMethod(m_Obj, "DoesNotExist");
        assertThat(methodDNE, is(nullValue()));
        Method isSetMethod = ReflectionsUtil.retrieveIsSetMethod(m_Obj, "TestInteger");
        assertThat(isSetMethod, is(notNullValue()));
        boolean isSet = (Boolean)isSetMethod.invoke(m_Obj, new Object[] {});
        assertThat(isSet, is(true));
    }
@ Test public void tesRetrievetIsSetMethod ( ) throws IllegalArgumentException , IllegalAccessException , InvocationTargetException { Method methodDNE = ReflectionsUtil . retrieveIsSetMethod ( m_Obj , "DoesNotExist" ) ; assertThat ( methodDNE , is ( nullValue ( ) ) ) ; Method isSetMethod = ReflectionsUtil . retrieveIsSetMethod ( m_Obj , "TestInteger" ) ; assertThat ( isSetMethod , is ( notNullValue ( ) ) ) ; boolean isSet = ( Boolean ) isSetMethod . invoke ( m_Obj , new Object [ ] { } ) ; assertThat ( isSet , is ( true ) ) ; }
Verify that the isSet method will return null if the method does not exist and a correct method name returns
 a valid method.
Verify that the isSet method will return null if the method does not exist and a correct method name returns a valid method .