This properties are required to run a JUnit test with a REST binding:
@BeforeDeploy public void setProperties() { System.setProperty("org.switchyard.component.resteasy.standalone.port", "8081"); System.setProperty("org.switchyard.component.resteasy.standalone.path", ""); }
Otherwise, test will fail with a NPE and no clue of the error. Either wizard for tooling or test runner should solve this.
You can see screencast of problem here: http://www.screencast.com/t/NW14j0Hh
|