mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void testRetrieveGetMethodNoSuchMethod() throws SecurityException
    {
        try
        {
            ReflectionsUtil.retrieveGetMethod(m_Obj, "DoesNotExistMethod", int.class);
            fail("Method does not exist therefore a NoSuchMethodException should have been thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
            //Expected exception.
        }
    }
/**
     * Verify a method that does not exist produces a no such method exception. 
     */
Verify a method that does not exist produces a no such method exception.
Verify a method that does not exist produces a no such method exception .
@Test
    public void testRetrieveGetMethodNoSuchMethod() throws SecurityException
    {
        try
        {
            ReflectionsUtil.retrieveGetMethod(m_Obj, "DoesNotExistMethod", int.class);
            fail("Method does not exist therefore a NoSuchMethodException should have been thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
        }
    }
@ Test public void testRetrieveGetMethodNoSuchMethod ( ) throws SecurityException { try { ReflectionsUtil . retrieveGetMethod ( m_Obj , "DoesNotExistMethod" , int . class ) ; fail ( "Method does not exist therefore a NoSuchMethodException should have been thrown." ) ; } catch ( final ReflectionsUtilException exception ) { } }
Verify a method that does not exist produces a no such method exception.
Verify a method that does not exist produces a no such method exception .
//Expected exception.