protected void setUp() throws Exception { super.setUp(); if (MuleManager.isInstanciated()) { MuleManager.getInstance().dispose(); } UMOManager manager = MuleManager.getInstance(); MuleManager.getConfiguration().setSynchronous(true); MuleManager.getConfiguration() .getPoolingProfile() .setInitialisationPolicy(PoolingProfile.POOL_INITIALISE_ONE_COMPONENT); manager.setModel(new SedaModel()); MuleDescriptor descriptor = createInDescriptor("httpIn", EchoComponent.class.getName()); manager.getModel().registerComponent(descriptor); manager.start(); }
public void setUp() throws Exception { super.setUp(); if (MuleManager.isInstanciated()) MuleManager.getInstance().dispose(); MuleXmlConfigurationBuilder builder = new MuleXmlConfigurationBuilder(); builder.configure("groovy-mule-config.xml"); }