1 19 20 package DataLoaderTests.DataObjectTest; 21 22 import junit.framework.*; 23 import org.netbeans.junit.*; 24 25 public class Validity extends NbTestCase { 26 27 public Validity(java.lang.String testName) { 28 super(testName); 29 } 30 31 public static void main(java.lang.String [] args) { 32 junit.textui.TestRunner.run(suite()); 33 } 34 35 private DataObjectTest T = null; 36 37 protected void setUp(){ 38 T = new DataObjectTest("Dummy"); 39 T.work = Manager.getWorkDirPath()+ 42 java.io.File.separator + this.getClass().getName().replace('.',java.io.File.separatorChar)+ 43 java.io.File.separator + getName(); 44 } 45 53 public void testHTMLValidity() throws Exception { 54 new DataLoaderTests.DataObjectTest.validity.HTMLObject.HTMLObject_validity("testDOValidity").testDOValidity(); 55 } 56 public void testImageValidity() throws Exception { 57 new DataLoaderTests.DataObjectTest.validity.ImageObject.ImageObject_validity("testDOValidity").testDOValidity(); 58 } 59 public void testJSPValidity() throws Exception { 60 new DataLoaderTests.DataObjectTest.validity.JSPObject.JSPObject_validity("testDOValidity").testDOValidity(); 61 } 62 66 80 public void testTextualValidity() throws Exception { 81 new DataLoaderTests.DataObjectTest.validity.TextualObject.TextualObject_validity("testDOValidity").testDOValidity(); 82 } 83 public void testURLValidity() throws Exception { 84 new DataLoaderTests.DataObjectTest.validity.URLObject.URLObject_validity("testDOValidity").testDOValidity(); 85 } 86 87 public static Test suite() { 88 NbTestSuite suite = new NbTestSuite(Validity.class); 89 return suite; 90 } 91 92 } 93 | Popular Tags |