1 23 24 package org.enhydra.xml.xmlc.html; 25 import java.io.File ; 26 import java.lang.reflect.Method ; 27 28 import junit.framework.Test; 29 30 import org.enhydra.xml.xmlc.driver.ExecXmlc; 31 32 36 public class ErrorHandlingTests extends HtmlTestCaseBase { 37 38 39 public static Test suite() { 40 return createSuite(ErrorHandlingTests.class, null); 41 } 42 43 44 public ErrorHandlingTests(Method method) { 45 super(method); 46 } 47 48 51 public void test1() { 52 HtmlBasicTest test = createTest("javascript1.html"); 53 if (fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 55 test.setCompileShouldFail(); 56 } 57 test.basicTest(); 58 } 59 60 63 public void test2() { 64 HtmlBasicTest test = createTest("bogus1.html"); 65 if (fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 67 test.setCompileShouldFail(); 68 } 69 test.basicTest(); 70 } 71 72 75 public void test3() { 76 HtmlBasicTest test = createTest("bogus2.html"); 77 if (fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 79 test.setCompileShouldFail(); 80 } 81 test.addCyberStudioTags(); 82 test.basicTest(); 83 } 84 85 88 public void test4() { 89 File insulin3 = getOtherInputFile("../xml", "bioml/insulin3.bioml"); 90 HtmlBasicTest test = createTest(insulin3); 91 test.setCompileShouldFail(); 92 test.basicTest(); 93 } 94 95 99 public void disable_test5() { 100 HtmlBasicTest test = createTest("bogusTag.html"); 103 if (!fParams.getParser().equals(ExecXmlc.SWING_PARSER)) { 105 test.setCompileShouldFail(); 106 } 107 test.basicTest(); 108 } 109 } 110 | Popular Tags |