コード例 #1
0
  @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"));
  }
コード例 #2
0
 @AfterClass
 public void stopMule() throws IOException {
   //        console.quit();
   Utilities.executeCommand(
       "sh "
           + getClass().getResource("/stopMule.sh").getPath()
           + " -p "
           + mule_home
           + " -s "
           + muleStartCommand);
 }