1 22 package org.jboss.ejb3.test.jsp.unit; 23 24 import java.net.URL ; 25 26 import junit.framework.Test; 27 28 import org.jboss.test.JBossTestCase; 29 30 34 public class EarServletUnitTestCase extends JBossTestCase 35 { 36 private static String REALM = "JBossTest Servlets"; 37 private String baseURL = HttpUtils.getBaseURL(); 38 private String baseURLNoAuth = HttpUtils.getBaseURLNoAuth(); 39 40 public EarServletUnitTestCase(String name) 41 { 42 super(name); 43 } 44 45 public void testEJBServlet() throws Exception 46 { 47 try { 48 URL url = new URL (baseURL+"jsp-test/TestJSP"); 49 HttpUtils.accessURL(url); 50 } catch (Exception e){ 51 e.printStackTrace(); 52 throw e; 53 } 54 } 55 56 59 public static Test suite() throws Exception 60 { 61 return getDeploySetup(EarServletUnitTestCase.class, "jsp-test.ear"); 62 } 63 64 65 } 66 | Popular Tags |