@Test public void testInjectedObjects() { AxisConnector connector = (AxisConnector) muleContext.getRegistry().lookupConnector("axisConnector2"); assertNotNull(connector); assertEquals(MockAxisServer.class, connector.getAxis().getClass()); assertEquals(MockProvider.class, connector.getClientProvider().getClass()); }
@Test public void testConfig() { AxisConnector connector = (AxisConnector) muleContext.getRegistry().lookupConnector("axisConnector"); assertNotNull(connector); assertEquals("test-axis-config.wsdd", connector.getServerConfig()); assertEquals("test-axis-config.wsdd", connector.getClientConfig()); assertFalse(connector.isTreatMapAsNamedParams()); assertFalse(connector.isDoAutoTypes()); assertEquals(2, connector.getBeanTypes().size()); assertTrue(connector.getBeanTypes().contains("org.mule.tck.testmodels.fruit.Apple")); assertTrue(connector.getBeanTypes().contains("org.mule.tck.testmodels.fruit.Banana")); assertEquals(1, connector.getSupportedSchemes().size()); assertEquals("http", connector.getSupportedSchemes().get(0)); }