1 23 24 package org.enhydra.xml.xmlc.xml; 25 import java.io.File ; 26 import java.lang.reflect.Method ; 27 28 import junit.framework.Test; 29 30 33 public class BasicTests extends XmlTestCaseBase { 34 35 public static Test suite() { 36 return createSuite(BasicTests.class, null); 37 } 38 39 40 public BasicTests(Method method) { 41 super(method); 42 } 43 44 47 public void test1() { 48 XmlBasicTest test 49 = new XmlBasicTest(this, getInputFile("simple/tiny.xml"), null); 50 test.noValidation(); 51 test.setUseToDocument(); 52 test.basicTest(); 53 } 54 55 58 public void test2() { 59 XmlBasicTest test 60 = new XmlBasicTest(this, getInputFile("xml-examples/6-1.xml"), null); 61 test.basicTest(); 62 } 63 64 67 public void test3() { 68 XmlBasicTest test 69 = new XmlBasicTest(this, getInputFile("xml-examples/6-17.xml"), null); 70 test.setEditReloadSource(false); 72 73 test.addXmlExampleCopyEntities(); 74 test.basicTest(); 75 } 76 77 80 public void test4() { 81 XmlBasicTest test 82 = new XmlBasicTest(this, getInputFile("xml-examples/7-3.xml"), null); 83 test.setUseToDocument(); 84 test.basicTest(); 85 } 86 87 90 public void test5() { 91 XmlBasicTest test 92 = new XmlBasicTest(this, getInputFile("xml-spec/REC-xml-20001006.xml"), 93 getInputFile("xml-spec/xmlspec-v21.dtd")); 94 test.basicTest(); 95 } 96 97 100 public void test6() { 101 XmlBasicTest test 102 = new XmlBasicTest(this, getInputFile("bioml/small.bioml"), 103 getInputFile("bioml/bioml.dtd")); 104 test.basicTest(); 105 } 106 107 110 public void test7() { 111 XmlBasicTest test 112 = new XmlBasicTest(this, getInputFile("xml-examples/6-17.ascii.xml"), 113 null); 114 test.setEditReloadSource(false); 116 117 test.addXmlExampleCopyEntities(); 118 test.setExpectedEncoding("US-ASCII"); 119 test.basicTest(); 120 } 121 122 125 public void test8() { 126 XmlBasicTest test 127 = new XmlBasicTest(this, getInputFile("simple/charEntities.xml"), null); 128 test.basicTest(); 129 } 130 131 136 public void test9() { 137 XmlBasicTest test 138 = new XmlBasicTest(this, getInputFile("bigentity/BigEntityTest.vxml"), 139 getInputFile("bigentity/voicexml1-0.dtd")); 140 test.addExtraSrcFile(getInputFile("bigentity/BigEntity.ent")); 141 test.basicTest(); 142 } 143 144 147 public void test10() { 148 File inputFile = getOtherInputFile("../html", "testPage1.html"); 149 XmlBasicTest test 150 = new XmlBasicTest(this, inputFile, null); 151 test.setCompileShouldFail(); 152 test.basicTest(); 153 } 154 } 155 | Popular Tags |