Menu

Using begin/endXxx() from CactusStrutsTestCas

2002-09-23
2002-09-24
  • colin froggatt

    colin froggatt - 2002-09-23

    Hi, I need to call a beginXxxx() method for the wrapped ServletTestCase.  This is required to setup authorisation info so I can acccess resorces protected by Servlet 2.x declaritive security.  I have added a beginXxx() method to the CactusStrutsTestCase class but it is simply ignored.

    Is there a way to call the begin/end methods of the Cactus test case or is there another way to setup the authorisation mechanism in StrutsTestCase?

     
    • Deryl Seale

      Deryl Seale - 2002-09-23

      Can you post an example of what you're trying to do?  You should be able to use beginXXX and endXXX methods in your testcase, provided that they match the name of your actual test method.

      The naming convention is very precise, so it's possible that there is a mismatch with the names.

      And depending on what you need to do in the beginXXX method, you might be able to do the same thing from the main test method.

      -d.

       
    • colin froggatt

      colin froggatt - 2002-09-24

      Thanks deryl, I think I was having one of those days, I left the 'test' of testXxxx in the begin name so I had beginTestXxxx in stead of beginXxxxx().
      It works fine now.
      Thanks for the quick reply.  C

       

Log in to post a comment.