mil.dod.th.ose.core/test/mil/dod/th/ose/core/xml/TestJaxbContextFactory.java
@Test
    public void testGetMuliptleContexts() throws JAXBException
    {
        JAXBContext jaxbContext1 = m_SUT.getContext(AssetCapabilities.class);
        JAXBContext jaxbContext2 = m_SUT.getContext(AssetCapabilities.class);
        JAXBContext jaxbContext3 = m_SUT.getContext(LinkLayerCapabilities.class);
        
        // different classes should have different contexts
        assertThat(jaxbContext1, is(not(jaxbContext3)));
        
        // same class should have the same context
        assertThat(jaxbContext1, is(jaxbContext2));
    }
/**
     * Verify getting the context multiple times for the same class with return the same context.
     */
Verify getting the context multiple times for the same class with return the same context.
Verify getting the context multiple times for the same class with return the same context .
@Test
    public void testGetMuliptleContexts() throws JAXBException
    {
        JAXBContext jaxbContext1 = m_SUT.getContext(AssetCapabilities.class);
        JAXBContext jaxbContext2 = m_SUT.getContext(AssetCapabilities.class);
        JAXBContext jaxbContext3 = m_SUT.getContext(LinkLayerCapabilities.class);
        assertThat(jaxbContext1, is(not(jaxbContext3)));
        assertThat(jaxbContext1, is(jaxbContext2));
    }
@ Test public void testGetMuliptleContexts ( ) throws JAXBException { JAXBContext jaxbContext1 = m_SUT . getContext ( AssetCapabilities . class ) ; JAXBContext jaxbContext2 = m_SUT . getContext ( AssetCapabilities . class ) ; JAXBContext jaxbContext3 = m_SUT . getContext ( LinkLayerCapabilities . class ) ; assertThat ( jaxbContext1 , is ( not ( jaxbContext3 ) ) ) ; assertThat ( jaxbContext1 , is ( jaxbContext2 ) ) ; }
Verify getting the context multiple times for the same class with return the same context.
Verify getting the context multiple times for the same class with return the same context .
// different classes should have different contexts // same class should have the same context