Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.2
-
None
-
Running in Sun Java 6, Linux / amd64
-
Patch
Description
When trying to build, I was receiving the following failures -
Failed tests:
testSimpleTest(com.opensymphony.xwork2.TestNGXWorkTestCaseTest)
setUp(com.opensymphony.xwork2.TestNGXWorkTestCaseTest$RunTest)
In debugging, I found an NPE in src/java/com/opensymphony/xwork2/TestNGXWorkTestCase.java. After instantiating the MockConfiguration, an attempt is made to retrieve a container, but the container is null, attempting to call 'getInstance' on the container results in an NPE. To resolve, I added a call to selfRegister() on the MockConfiguration. This makes a container available and the unit tests pass.
Attachments
Issue Links
- Is contained by
-
XW-640 Support multiple unknown handlers
- Resolved