dataModel.put("date", new SimpleDate(cal.getTime(), TemplateDateModel.DATETIME));
dataModel.put("unknownDate", new SimpleDate(cal.getTime(), TemplateDateModel.UNKNOWN));
}
else if (testName.equals("number-format")) {
dataModel.put("int", new SimpleNumber(new Integer(1)));
dataModel.put("double", new SimpleNumber(new Double(1.0)));
dataModel.put("double2", new SimpleNumber(new Double(1 + 1e-15)));
dataModel.put("double3", new SimpleNumber(new Double(1e-16)));
dataModel.put("double4", new SimpleNumber(new Double(-1e-16)));
dataModel.put("bigDecimal", new SimpleNumber(java.math.BigDecimal.valueOf(1)));
dataModel.put("bigDecimal2", new SimpleNumber(java.math.BigDecimal.valueOf(1, 16)));
}
else if (testName.equals("default-xmlns")) {
InputSource is = new InputSource(getClass().getResourceAsStream("test-defaultxmlns1.xml"));
NodeModel nm = NodeModel.parse(is);