SwitchYard generated JUnit Test with NullPointerException
Issue
SwitchYard generated a JUnit test which ends with NullPointerException - it is a simple hello world test.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.example.switchyard.SwitchyardTest.TestOneServiceTest
Aug 18, 2014 5:05:20 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.114 sec <<< FAILURE!
testSayHello(com.example.switchyard.SwitchyardTest.TestOneServiceTest) Time elapsed: 6 sec <<< ERROR!
java.lang.NullPointerException
at org.switchyard.deploy.internal.Deployment.destroy(Deployment.java:182)
at org.switchyard.test.SwitchYardTestKit.undeploy(SwitchYardTestKit.java:767)
at org.switchyard.test.SwitchYardTestKit.cleanup(SwitchYardTestKit.java:185)
How to fix this issue?
Environment
- Red Hat JBoss Fuse Service Works 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
