1 19 package org.netbeans.modules.xsl.transform; 20 21 import java.net.*; 23 25 28 import junit.framework.*; 29 import org.netbeans.junit.*; 30 31 48 52 public class TransformServletTest extends NbTestCase { 53 54 public TransformServletTest(java.lang.String testName) { 55 super(testName); 56 } 57 58 public static void main(java.lang.String [] args) { 59 junit.textui.TestRunner.run(suite()); 60 } 61 62 public static Test suite() { 63 TestSuite suite = new NbTestSuite(TransformServletTest.class); 64 65 return suite; 66 } 67 68 69 70 public void testGetServletURL() { 71 System.out.println("testGetServletURL"); 72 73 URL servletURL = null; 74 boolean exceptionThrown = false; 75 try { 76 servletURL = TransformServlet.getServletURL(); 77 } catch (Exception exc) { 78 System.err.println("!!! " + exc); 79 exceptionThrown = true; 80 } 81 82 assertTrue ("I need correct Transform Servlet URL!", (servletURL!=null & exceptionThrown!= true)); 83 } 84 85 } 86 | Popular Tags |