JBoss – how to easily test EJBs using JUnit
•
Java
I want to use JUnit to test enterprise Java beans (which should be deployed to JBoss server in the future) But I don't know exactly what tools I can use Ordinary JUnit fails due to the lack of EJB container and the lack of required injection
Google search led me to a library called JBoss EJB embedded container, but it seems to be out of date I can't find any source or binary files to download
So please help, what is a simple way to locally generate a "simulation" container that can run JUnit tests on enterprise beans?
Greeting book
Solution
I suggest you look at arquillian:
There is still life embedded JBoss as Seam framework also provides a test environment with embedded JBoss, which can run component tests of applications (using TestNG)
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码