SwitchYard generated JUnit Test with NullPointerException

Solution Verified - Updated -


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!
    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?


  • Red Hat JBoss Fuse Service Works 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content