|
Lines 28-34
Link Here
|
| 28 |
* bug 277650 implements xs:unsignedByte data type |
28 |
* bug 277650 implements xs:unsignedByte data type |
| 29 |
* bug 279373 improvements to multiply operation on xs:yearMonthDuration |
29 |
* bug 279373 improvements to multiply operation on xs:yearMonthDuration |
| 30 |
* data type. |
30 |
* data type. |
| 31 |
* bug 279376 improvements to xs:yearMonthDuration division operation |
31 |
* bug 279376 improvements to xs:yearMonthDuration division operation |
|
|
32 |
* bug 281046 implementation of xs:base64Binary data type |
| 32 |
*******************************************************************************/ |
33 |
*******************************************************************************/ |
| 33 |
package org.eclipse.wst.xml.xpath2.processor.test; |
34 |
package org.eclipse.wst.xml.xpath2.processor.test; |
| 34 |
|
35 |
|
|
Lines 863-866
Link Here
|
| 863 |
|
864 |
|
| 864 |
assertEquals("true", actual); |
865 |
assertEquals("true", actual); |
| 865 |
} |
866 |
} |
|
|
867 |
|
| 868 |
public void testXSBase64Binary() throws Exception { |
| 869 |
// Bug 281046 |
| 870 |
URL fileURL = bundle.getEntry("/TestSources/emptydoc.xml"); |
| 871 |
loadDOMDocument(fileURL); |
| 872 |
|
| 873 |
// Get XML Schema Information for the Document |
| 874 |
XSModel schema = getGrammar(); |
| 875 |
|
| 876 |
DynamicContext dc = setupDynamicContext(schema); |
| 877 |
|
| 878 |
String xpath = "xs:base64Binary('cmxjZ3R4c3JidnllcmVuZG91aWpsbXV5Z2NhamxpcmJkaWFhbmFob2VsYXVwZmJ1Z2dmanl2eHlzYmhheXFtZXR0anV2dG1q') eq xs:base64Binary('cmxjZ3R4c3JidnllcmVuZG91aWpsbXV5Z2NhamxpcmJkaWFhbmFob2VsYXVwZmJ1Z2dmanl2eHlzYmhheXFtZXR0anV2dG1q')"; |
| 879 |
XPath path = compileXPath(dc, xpath); |
| 880 |
|
| 881 |
Evaluator eval = new DefaultEvaluator(dc, domDoc); |
| 882 |
ResultSequence rs = eval.evaluate(path); |
| 883 |
|
| 884 |
XSBoolean result = (XSBoolean) rs.first(); |
| 885 |
|
| 886 |
String actual = result.string_value(); |
| 887 |
|
| 888 |
assertEquals("true", actual); |
| 889 |
} |
| 866 |
} |
890 |
} |