mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/validator/TestValidatorImpl.java
@Test
    public void testValidateCached() throws ValidationFailedException, MalformedURLException, SAXException
    {
        final TestClass data = new TestClass();
        
        m_SUT.validate(data);
        m_SUT.validate(data);
        
        verify(m_SchemaFactory, times(1)).newSchema(new URL("file:schema.xsd"));
        verify(m_Schema, times(1)).newValidator();
    }
/**
     * Test the validate method will cache the validator and schema.
     */
Test the validate method will cache the validator and schema.
Test the validate method will cache the validator and schema .
@Test
    public void testValidateCached() throws ValidationFailedException, MalformedURLException, SAXException
    {
        final TestClass data = new TestClass();
        m_SUT.validate(data);
        m_SUT.validate(data);
        verify(m_SchemaFactory, times(1)).newSchema(new URL("file:schema.xsd"));
        verify(m_Schema, times(1)).newValidator();
    }
@ Test public void testValidateCached ( ) throws ValidationFailedException , MalformedURLException , SAXException { final TestClass data = new TestClass ( ) ; m_SUT . validate ( data ) ; m_SUT . validate ( data ) ; verify ( m_SchemaFactory , times ( 1 ) ) . newSchema ( new URL ( "file:schema.xsd" ) ) ; verify ( m_Schema , times ( 1 ) ) . newValidator ( ) ; }
Test the validate method will cache the validator and schema.
Test the validate method will cache the validator and schema .