mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void testHasJaxbAnnotation() throws SecurityException, NoSuchFieldException
    {
        Field xmlAttributeField = TestClassXmlAnnotations.class.getDeclaredField("m_XmlAttribute");
        assertThat(ReflectionsUtil.hasJaxbAnnotation(xmlAttributeField), is(true));
        
        Field xmlElementField = TestClassXmlAnnotations.class.getDeclaredField("m_XmlElement");
        assertThat(ReflectionsUtil.hasJaxbAnnotation(xmlElementField), is(true));
        
        Field xmlValueField = TestClassXmlAnnotations.class.getDeclaredField("m_XmlValue");
        assertThat(ReflectionsUtil.hasJaxbAnnotation(xmlValueField), is(true));
    }
/**
     * Verify that the correct boolean is returned for the specified field.
     */
Verify that the correct boolean is returned for the specified field.
Verify that the correct boolean is returned for the specified field .
@Test
    public void testHasJaxbAnnotation() throws SecurityException, NoSuchFieldException
    {
        Field xmlAttributeField = TestClassXmlAnnotations.class.getDeclaredField("m_XmlAttribute");
        assertThat(ReflectionsUtil.hasJaxbAnnotation(xmlAttributeField), is(true));
        Field xmlElementField = TestClassXmlAnnotations.class.getDeclaredField("m_XmlElement");
        assertThat(ReflectionsUtil.hasJaxbAnnotation(xmlElementField), is(true));
        Field xmlValueField = TestClassXmlAnnotations.class.getDeclaredField("m_XmlValue");
        assertThat(ReflectionsUtil.hasJaxbAnnotation(xmlValueField), is(true));
    }
@ Test public void testHasJaxbAnnotation ( ) throws SecurityException , NoSuchFieldException { Field xmlAttributeField = TestClassXmlAnnotations . class . getDeclaredField ( "m_XmlAttribute" ) ; assertThat ( ReflectionsUtil . hasJaxbAnnotation ( xmlAttributeField ) , is ( true ) ) ; Field xmlElementField = TestClassXmlAnnotations . class . getDeclaredField ( "m_XmlElement" ) ; assertThat ( ReflectionsUtil . hasJaxbAnnotation ( xmlElementField ) , is ( true ) ) ; Field xmlValueField = TestClassXmlAnnotations . class . getDeclaredField ( "m_XmlValue" ) ; assertThat ( ReflectionsUtil . hasJaxbAnnotation ( xmlValueField ) , is ( true ) ) ; }
Verify that the correct boolean is returned for the specified field.
Verify that the correct boolean is returned for the specified field .