1 package servletunit.struts.tests.cactus; 2 3 import servletunit.struts.CactusStrutsTestCase; 4 5 // StrutsTestCase - a JUnit extension for testing Struts actions 6 // within the context of the ActionServlet. 7 // Copyright (C) 2002 Deryl Seale 8 // 9 // 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 } 32