mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void testUnsetAndSetterFieldDoesNotExist() throws ReflectionsUtilException
    {
        try
        {
            ReflectionsUtil.unsetField(m_Obj, "DoesNotExist");
            fail("Neither unset nor setter methods exists for specified field therefore a NoSuchMethodException should"
                    + "be thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
            //Expected Exception
        }
    }
/**
     * Verify that if an exception is thrown if the unset and setter methods do not exists for a field.
     */
Verify that if an exception is thrown if the unset and setter methods do not exists for a field.
Verify that if an exception is thrown if the unset and setter methods do not exists for a field .
@Test
    public void testUnsetAndSetterFieldDoesNotExist() throws ReflectionsUtilException
    {
        try
        {
            ReflectionsUtil.unsetField(m_Obj, "DoesNotExist");
            fail("Neither unset nor setter methods exists for specified field therefore a NoSuchMethodException should"
                    + "be thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
        }
    }
@ Test public void testUnsetAndSetterFieldDoesNotExist ( ) throws ReflectionsUtilException { try { ReflectionsUtil . unsetField ( m_Obj , "DoesNotExist" ) ; fail ( "Neither unset nor setter methods exists for specified field therefore a NoSuchMethodException should" + "be thrown." ) ; } catch ( final ReflectionsUtilException exception ) { } }
Verify that if an exception is thrown if the unset and setter methods do not exists for a field.
Verify that if an exception is thrown if the unset and setter methods do not exists for a field .
//Expected Exception