curcuru 01/02/13 13:33:04
Modified: test/java/src/org/apache/qetest/trax TemplatesAPITest.java
Log:
Tests for getProperties().get() versus getProperties().getProperty()
defaulting correctly
Revision Changes Path
1.6 +14 -0
xml-xalan/test/java/src/org/apache/qetest/trax/TemplatesAPITest.java
Index: TemplatesAPITest.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/trax/TemplatesAPITest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TemplatesAPITest.java 2000/12/19 15:01:34 1.5
+++ TemplatesAPITest.java 2001/02/13 21:33:04 1.6
@@ -283,6 +283,20 @@
+ simpleTest.inputName);
reporter.logHashtable(reporter.STATUSMSG, outputFormat,
"getOutputProperties for " +
simpleTest.inputName);
+
+ // Check that the local stylesheet.getProperty has default set,
cf. getOutputProperties javadoc
+
reporter.check(("xml".equals(outputFormat.getProperty(OutputKeys.METHOD))),
true, simpleTest.inputName + ".op.getProperty("
+ + OutputKeys.METHOD + ") is default value, act: "
+ outputFormat.getProperty(OutputKeys.METHOD));
+ // Check that the local stylesheet.get has nothing set, cf.
getOutputProperties javadoc
+ reporter.check((null == outputFormat.get(OutputKeys.METHOD)),
true, simpleTest.inputName + ".op.get("
+ + OutputKeys.METHOD + ") is null value, act: " +
outputFormat.get(OutputKeys.METHOD));
+
+ // Check that the local stylesheet.getProperty has default set,
cf. getOutputProperties javadoc
+
reporter.check(("no".equals(outputFormat.getProperty(OutputKeys.INDENT))),
true, simpleTest.inputName + ".op.getProperty("
+ + OutputKeys.INDENT + ") is default value, act: "
+ outputFormat.getProperty(OutputKeys.INDENT));
+ // Check that the local stylesheet.get has nothing set, cf.
getOutputProperties javadoc
+ reporter.check((null == (outputFormat.get(OutputKeys.INDENT))),
true, simpleTest.inputName + ".op.get("
+ + OutputKeys.INDENT + ") is null value, act: " +
outputFormat.get(OutputKeys.INDENT));
}
catch (Exception e)
{