mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void testRetrieveInnerObjectWithIncorrectMethod()
    {
        try
        {
            ReflectionsUtil.retrieveInnerObject(m_Obj, "DoesNotExistMethod", int.class);
            fail("Get method does not exists therefore a NoSuchMethod exception should have been thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
            //Expected Exception
        }
    }
/**
     * Verify that an exception is thrown when trying retrieve an inner object for a field that has no getter method.
     */
Verify that an exception is thrown when trying retrieve an inner object for a field that has no getter method.
Verify that an exception is thrown when trying retrieve an inner object for a field that has no getter method .
@Test
    public void testRetrieveInnerObjectWithIncorrectMethod()
    {
        try
        {
            ReflectionsUtil.retrieveInnerObject(m_Obj, "DoesNotExistMethod", int.class);
            fail("Get method does not exists therefore a NoSuchMethod exception should have been thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
        }
    }
@ Test public void testRetrieveInnerObjectWithIncorrectMethod ( ) { try { ReflectionsUtil . retrieveInnerObject ( m_Obj , "DoesNotExistMethod" , int . class ) ; fail ( "Get method does not exists therefore a NoSuchMethod exception should have been thrown." ) ; } catch ( final ReflectionsUtilException exception ) { } }
Verify that an exception is thrown when trying retrieve an inner object for a field that has no getter method.
Verify that an exception is thrown when trying retrieve an inner object for a field that has no getter method .
//Expected Exception