Beispiel #1
0
  // @Override
  protected void doSetUp() throws Exception {
    super.doSetUp();

    // The working directory is deleted on tearDown
    File tempDir = FileUtils.newFile(MuleManager.getConfiguration().getWorkingDirectory(), "tmp");
    if (!tempDir.exists()) {
      tempDir.mkdirs();
    }

    validMessage = File.createTempFile("simple", ".mule", tempDir);
    assertNotNull(validMessage);
    FileUtils.writeStringToFile(validMessage, "validMessage");
  }
Beispiel #2
0
 // @Override
 protected void doTearDown() throws Exception {
   // TestConnector dispatches events via the test: protocol to test://test
   // endpoints, which seems to end up in a directory called "test" :(
   FileUtils.deleteTree(FileUtils.newFile(getTestConnector().getProtocol()));
   super.doTearDown();
 }