1 23 24 package org.enhydra.xml.xmlc.html; 25 import java.lang.reflect.Method ; 26 27 import junit.framework.Test; 28 29 import org.enhydra.xml.driver.TestFileOps; 30 import org.enhydra.xml.xmlc.driver.ExecXmlc; 31 32 35 public class SSITests extends HtmlTestCaseBase { 36 37 public static Test suite() { 38 return createSuite(SSITests.class, null); 39 } 40 41 42 public SSITests(Method method) { 43 super(method); 44 } 45 46 49 public void test1() { 50 HtmlBasicTest test = createTest("ssiTestPage1.html"); 51 test.addOptionFile(getInputFile("testPage1.xmlc")); 52 test.basicTest(); 53 } 54 55 58 public void test2() { 59 HtmlBasicTest test = createTest("ssiTestPage1.html"); 60 if (fParams.getReloading()) { 62 TestFileOps.copyFileToDir(getInputFile("ssiTestIncl1.html"), 63 getResultsDir()); 64 } 65 test.addFirst(ExecXmlc.OPT_SSI); 66 test.addOptionFile(getInputFile("testPage1.xmlc")); 67 test.basicTest(); 68 } 69 70 73 public void test3() { 74 HtmlBasicTest test = createTest("ssiTestPage2.html"); 75 test.addFirst(ExecXmlc.OPT_SSI); 76 test.addOptionFile(getInputFile("testPage1.xmlc")); 77 test.basicTest(); 78 } 79 80 85 public void test4() { 86 HtmlBasicTest test = createTest("cr-lf/Login.html"); 87 test.addFirst(ExecXmlc.OPT_SSI); 88 test.basicTest(); 89 } 90 } 91 | Popular Tags |