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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.
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