CAMEL-11824: Cleanup after test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8a50151f Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8a50151f Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8a50151f Branch: refs/heads/master Commit: 8a50151f3770b6202260fa62815b24226d1bb7fa Parents: b9d2248 Author: Claus Ibsen <davscl...@apache.org> Authored: Tue Sep 26 15:15:17 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Tue Sep 26 15:15:17 2017 +0200 ---------------------------------------------------------------------- .../example/reportincident/ReportIncidentRoutesTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/8a50151f/examples/camel-example-cxf-proxy/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java ---------------------------------------------------------------------- diff --git a/examples/camel-example-cxf-proxy/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java b/examples/camel-example-cxf-proxy/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java index 62d81f7..dd5a4ab 100755 --- a/examples/camel-example-cxf-proxy/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java +++ b/examples/camel-example-cxf-proxy/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java @@ -21,7 +21,9 @@ import java.io.FileOutputStream; import org.apache.camel.spring.Main; import org.apache.camel.test.AvailablePortFinder; +import org.apache.camel.util.FileUtil; import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; +import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; @@ -56,6 +58,12 @@ public class ReportIncidentRoutesTest { url = "http://localhost:" + port + "/camel-example-cxf-proxy/webservices/incident"; } + @AfterClass + public static void cleanup() { + File custom = new File("target/custom.properties"); + FileUtil.deleteFile(custom); + } + protected void startCamel() throws Exception { if (!"true".equalsIgnoreCase(System.getProperty("skipStartingCamelContext"))) { main = new Main();