1 23 24 package org.enhydra.xml.xmlc.html; 25 26 import java.io.File ; 27 import java.lang.reflect.Method ; 28 29 import org.enhydra.xml.xmlc.driver.ExecXmlc; 30 import org.enhydra.xml.xmlc.driver.XmlcTestCaseBase; 31 import org.enhydra.xml.xmlc.driver.XmlcTestParams; 32 33 37 public class HtmlTestCaseBase extends XmlcTestCaseBase { 38 39 private String fHtmlEncoding; 40 41 42 protected HtmlTestCaseBase(Method method) { 43 super(method, XmlcTestParams.getParams(false)); 44 } 45 46 47 protected HtmlBasicTest createTest(String inputDoc) { 48 return new HtmlBasicTest(this, getInputFile(inputDoc)); 49 } 50 51 52 protected HtmlBasicTest createTest(File inputDoc) { 53 return new HtmlBasicTest(this, inputDoc); 54 } 55 56 57 protected HtmlBasicTest createLutrisIndexTest() { 58 HtmlBasicTest test = createTest("lutris-index.html"); 59 test.addCyberStudioTags(); 60 return test; 61 } 62 63 64 65 public void setHtmlEncoding(String encoding) { 66 fHtmlEncoding = encoding; 67 } 68 69 73 public void addStdOpts(ExecXmlc execXmlc) { 74 if (fHtmlEncoding != null) { 75 execXmlc.addOpt(ExecXmlc.OPT_HTML_ENCODING, fHtmlEncoding); 76 } 77 } 78 } 79 | Popular Tags |