mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void testRetrieveSetMethod() throws 
        IllegalArgumentException, IllegalAccessException, InvocationTargetException
    {
        Method methodDNE = ReflectionsUtil.retrieveSetMethod(m_Obj, "methodName");
        
        assertThat(methodDNE, nullValue());
        
        Method methodExists = ReflectionsUtil.retrieveSetMethod(m_Obj, "TestInteger");
        assertThat(methodExists, notNullValue());
        
        methodExists.invoke(m_Obj, 11);
        
        assertThat(m_Obj.getTestInteger(), is(11));
    }
/**
     * Verify a set method that does not exist will return null and a correct 
     * method name returns the correct method.
     */
Verify a set method that does not exist will return null and a correct
method name returns the correct method.
Verify a set method that does not exist will return null and a correct method name returns the correct method .
@Test
    public void testRetrieveSetMethod() throws 
        IllegalArgumentException, IllegalAccessException, InvocationTargetException
    {
        Method methodDNE = ReflectionsUtil.retrieveSetMethod(m_Obj, "methodName");
        assertThat(methodDNE, nullValue());
        Method methodExists = ReflectionsUtil.retrieveSetMethod(m_Obj, "TestInteger");
        assertThat(methodExists, notNullValue());
        methodExists.invoke(m_Obj, 11);
        assertThat(m_Obj.getTestInteger(), is(11));
    }
@ Test public void testRetrieveSetMethod ( ) throws IllegalArgumentException , IllegalAccessException , InvocationTargetException { Method methodDNE = ReflectionsUtil . retrieveSetMethod ( m_Obj , "methodName" ) ; assertThat ( methodDNE , nullValue ( ) ) ; Method methodExists = ReflectionsUtil . retrieveSetMethod ( m_Obj , "TestInteger" ) ; assertThat ( methodExists , notNullValue ( ) ) ; methodExists . invoke ( m_Obj , 11 ) ; assertThat ( m_Obj . getTestInteger ( ) , is ( 11 ) ) ; }
Verify a set method that does not exist will return null and a correct
 method name returns the correct method.
Verify a set method that does not exist will return null and a correct method name returns the correct method .