35.3.2. Using SeamTest with another test framework
Seam provides TestNG support out of the box, but you can also use other test frameworks such as JUnit. To do so, you must provide an implementation of
AbstractSeamTest
that does the following:
- Calls
super.begin()
before every test method. - Calls
super.end()
after every test method. - Calls
super.setupClass()
to set up the integration test environment. This should be called prior to any test methods. - Calls
super.cleanupClass()
to clean up the integration test environment. - Calls
super.startSeam()
to start Seam when integration testing begins. - Calls
super.stopSeam()
to cleanly shut down Seam at the end of integration testing.