Problem running TomEE Test Case inside Intellij Community Edition

已回答

Hi guys,

there is an issue which I have no idea how to solve.

I cloned the TomEE repository and included it inside Intellij Community Edition as Maven project.

Now I let run an easy Test like org.superbiz.cdi.requestscope.RestaurantTest but the test does not run:

javax.ejb.EJBException: Provider error. No provider found

    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:67)
    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:43)
    at org.superbiz.cdi.requestscope.RestaurantTest.startContainer(RestaurantTest.java:39)

When I start it from the command line:

tomee/examples/cdi-request-scope$ mvn compile surefire:test -Dtest=org.superbiz.cdi.requestscope.RestaurantTest

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

The test runs as expected.

Now I want to know what happens under the hood. How can I found out what is different on the command line and what should I set inside the Intellij. Classpath etc. at the moment I have no idea.

Has somebody an idea what steps should I do next to get it to run? Or does it work only with an Ultimate edition?

Thanks,

Markus

 

评论操作 固定链接

Hi Markus Hofmann You can try running your test using Maven Run/Debug configuration:

If the problem remains, please prepare and provide a small project sample. The files can be uploaded at https://uploads.jetbrains.com (do not forget to specify the UploadID here)

0

请先登录再写评论。