mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/config/TestXmlConfigurations2ndRun.java
@Test
    public final void testTransportLayerConfiguration()
    {
        String testTransportLayerName = "xmlConfigTransportLayer";
        
        CustomCommsService customCommsService = IntegrationTestRunner.getService(CustomCommsService.class);
        assertThat(customCommsService, is(notNullValue()));

        try
        {
            customCommsService.getTransportLayer(testTransportLayerName);
            fail("Should throw IllegalArguementException as transport layer should not have been created.");
        }
        catch (IllegalArgumentException e)
        {
            // Do nothing exception should be thrown.
        }
    }
/*
     * Tests that a Transport Layer is not re-created by the configs.xml on second run.
     */
Tests that a Transport Layer is not re-created by the configs.xml on second run.
Tests that a Transport Layer is not re - created by the configs . xml on second run .
@Test
    public final void testTransportLayerConfiguration()
    {
        String testTransportLayerName = "xmlConfigTransportLayer";
        CustomCommsService customCommsService = IntegrationTestRunner.getService(CustomCommsService.class);
        assertThat(customCommsService, is(notNullValue()));
        try
        {
            customCommsService.getTransportLayer(testTransportLayerName);
            fail("Should throw IllegalArguementException as transport layer should not have been created.");
        }
        catch (IllegalArgumentException e)
        {
        }
    }
@ Test public final void testTransportLayerConfiguration ( ) { String testTransportLayerName = "xmlConfigTransportLayer" ; CustomCommsService customCommsService = IntegrationTestRunner . getService ( CustomCommsService . class ) ; assertThat ( customCommsService , is ( notNullValue ( ) ) ) ; try { customCommsService . getTransportLayer ( testTransportLayerName ) ; fail ( "Should throw IllegalArguementException as transport layer should not have been created." ) ; } catch ( IllegalArgumentException e ) { } }
Tests that a Transport Layer is not re-created by the configs.xml on second run.
Tests that a Transport Layer is not re - created by the configs . xml on second run .
// Do nothing exception should be thrown.