@BeforeClass public void deployAndRunMule() throws IOException, InterruptedException { raml = Utilities.getRamlFromFile(); console = new Console(); console.loadRaml(raml); Utilities.updateConfig(mule_home, applicationName); Utilities.executeCommand("touch " + mule_home + "/apps/" + applicationName + "mule-config.xml"); Thread.sleep(20000); System.out.println( "Config after updates is: \n" + Utilities.getStringFromFile( mule_home + "/apps/" + applicationName + "mule-config.xml")); }
@AfterClass public void stopMule() throws IOException { // console.quit(); Utilities.executeCommand( "sh " + getClass().getResource("/stopMule.sh").getPath() + " -p " + mule_home + " -s " + muleStartCommand); }