1 22 package org.jboss.ejb3.test.dd.web.unit; 23 24 import java.net.URL ; 25 26 import junit.framework.Test; 27 28 import org.jboss.test.JBossTestCase; 29 import org.jboss.ejb3.test.dd.web.util.HttpUtils; 30 31 44 public class WebIntegrationUnitTestCase extends JBossTestCase 45 { 46 private static String REALM = "JBossTest Servlets"; 47 private String baseURL = HttpUtils.getBaseURL(); 48 private String baseURLNoAuth = HttpUtils.getBaseURLNoAuth(); 49 50 public WebIntegrationUnitTestCase(String name) 51 { 52 super(name); 53 } 54 55 public void testEJBServlet() throws Exception 56 { 57 try { 58 URL url = new URL (baseURL+"dd/EJBServlet"); 59 HttpUtils.accessURL(url); 60 } catch (Exception e){ 61 e.printStackTrace(); 62 throw e; 63 } 64 } 65 66 67 79 80 257 258 261 public static Test suite() throws Exception 262 { 263 return getDeploySetup(WebIntegrationUnitTestCase.class, "dd-web.ear"); 264 } 265 266 267 } 268 | Popular Tags |