junit.framework.AssertionFailedError: Error trying to set up test fixture: class java.lang.NullPointerException - null

strutstestcase | nobody | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to use CactusStrutsTestCase

    strutstestcase | 1 decade ago | nobody
    junit.framework.AssertionFailedError: Error trying to set up test fixture: class java.lang.NullPointerException - null

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Error trying to set up test fixture: class java.lang.NullPointerException - null

      at servletunit.struts.CactusStrutsTestCase.setUp()
    2. servletunit.struts
      CactusStrutsTestCase.setUp
      1. servletunit.struts.CactusStrutsTestCase.setUp(CactusStrutsTestCase.java:100)
      1 frame
    3. com.ibx.cactus
      HelloActionTest.testAction
      1. com.ibx.cactus.test.HelloActionTest.setUp(HelloActionTest.java:32)
      2. com.ibx.cactus.test.HelloActionTest.testAction(HelloActionTest.java:36)
      2 frames