01: package servletunit.struts.tests.cactus;
02:
03: import servletunit.struts.CactusStrutsTestCase;
04:
05: // StrutsTestCase - a JUnit extension for testing Struts actions
06: // within the context of the ActionServlet.
07: // Copyright (C) 2002 Deryl Seale
08: //
09: // This library is free software; you can redistribute it and/or
10: // modify it under the terms of the Apache Software License as
11: // published by the Apache Software Foundation; either version 1.1
12: // of the License, or (at your option) any later version.
13: //
14: // This library is distributed in the hope that it will be useful,
15: // but WITHOUT ANY WARRANTY; without even the implied warranty of
16: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17: // Apache Software Foundation Licens for more details.
18: //
19: // You may view the full text here: http://www.apache.org/LICENSE.txt
20: public class TestNoRequestPathInfo extends CactusStrutsTestCase {
21:
22: public void testNoPathSet() {
23: try {
24: actionPerform();
25: fail("Should have thrown IllegalStateException");
26: } catch (IllegalStateException ise) {
27: return;
28: }
29: }
30:
31: }
|