Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 139727 Details for
Bug 281046
[xpath2] implementation of xs:base64Binary data type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
test case patch file
bug281046_testcase.txt (text/plain), 3.04 KB, created by
Mukul Gandhi
on 2009-06-22 04:52:13 EDT
(
hide
)
Description:
test case patch file
Filename:
MIME Type:
Creator:
Mukul Gandhi
Created:
2009-06-22 04:52:13 EDT
Size:
3.04 KB
patch
obsolete
>Index: src/org/eclipse/wst/xml/xpath2/processor/test/AbstractPsychoPathTest.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/test/AbstractPsychoPathTest.java,v >retrieving revision 1.13 >diff -u -r1.13 AbstractPsychoPathTest.java >--- src/org/eclipse/wst/xml/xpath2/processor/test/AbstractPsychoPathTest.java 20 Jun 2009 23:00:11 -0000 1.13 >+++ src/org/eclipse/wst/xml/xpath2/processor/test/AbstractPsychoPathTest.java 22 Jun 2009 08:50:10 -0000 >@@ -71,6 +71,7 @@ > super.setUp(); > bundle = Platform > .getBundle("org.eclipse.wst.xml.xpath2.processor.tests"); >+ System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); > System.setProperty("javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema","org.apache.xerces.jaxp.validation.XMLSchemaFactory"); > } > >Index: src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java,v >retrieving revision 1.27 >diff -u -r1.27 TestBugs.java >--- src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java 9 Jun 2009 14:54:33 -0000 1.27 >+++ src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java 22 Jun 2009 08:50:11 -0000 >@@ -28,7 +28,8 @@ > * bug 277650 implements xs:unsignedByte data type > * bug 279373 improvements to multiply operation on xs:yearMonthDuration > * data type. >- * bug 279376 improvements to xs:yearMonthDuration division operation >+ * bug 279376 improvements to xs:yearMonthDuration division operation >+ * bug 281046 implementation of xs:base64Binary data type > *******************************************************************************/ > package org.eclipse.wst.xml.xpath2.processor.test; > >@@ -863,4 +864,27 @@ > > assertEquals("true", actual); > } >+ >+ public void testXSBase64Binary() throws Exception { >+ // Bug 281046 >+ URL fileURL = bundle.getEntry("/TestSources/emptydoc.xml"); >+ loadDOMDocument(fileURL); >+ >+ // Get XML Schema Information for the Document >+ XSModel schema = getGrammar(); >+ >+ DynamicContext dc = setupDynamicContext(schema); >+ >+ String xpath = "xs:base64Binary('cmxjZ3R4c3JidnllcmVuZG91aWpsbXV5Z2NhamxpcmJkaWFhbmFob2VsYXVwZmJ1Z2dmanl2eHlzYmhheXFtZXR0anV2dG1q') eq xs:base64Binary('cmxjZ3R4c3JidnllcmVuZG91aWpsbXV5Z2NhamxpcmJkaWFhbmFob2VsYXVwZmJ1Z2dmanl2eHlzYmhheXFtZXR0anV2dG1q')"; >+ XPath path = compileXPath(dc, xpath); >+ >+ Evaluator eval = new DefaultEvaluator(dc, domDoc); >+ ResultSequence rs = eval.evaluate(path); >+ >+ XSBoolean result = (XSBoolean) rs.first(); >+ >+ String actual = result.string_value(); >+ >+ assertEquals("true", actual); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 281046
:
139726
| 139727