junit.framework.AssertionFailedError: You are overriding the setUp() method without calling super.setUp().  You must call the superclass setUp() method in your TestCase subclass to ensure proper initialization.

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: You are overriding the setUp() method without calling super.setUp().  You must call the superclass setUp() method in your TestCase subclass to ensure proper initialization.
  2. 0

    AssertionFailedError: You are overriding...

    strutstestcase | 1 decade ago | nobody
    junit.framework.AssertionFailedError: You are overriding the setUp() method without calling super.setUp().  You must call the superclass setUp() and tearDown() methods in your TestCase subclass to ensure proper initialization.

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      You are overriding the setUp() method without calling super.setUp().  You must call the superclass setUp() method in your TestCase subclass to ensure proper initialization.

      at servletunit.struts.CactusStrutsTestCase.init()
    2. servletunit.struts
      CactusStrutsTestCase.setRequestPathInfo
      1. servletunit.struts.CactusStrutsTestCase.init(CactusStrutsTestCase.java:73)
      2. servletunit.struts.CactusStrutsTestCase.setRequestPathInfo(CactusStrutsTestCase.java:195)
      2 frames
    3. com.ibx.cactus
      HelloActionTest.testAction
      1. com.ibx.cactus.test.HelloActionTest.testAction(HelloActionTest.java:37)
      1 frame