Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 281046 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/xml/xpath2/processor/test/AbstractPsychoPathTest.java (+1 lines)
Lines 71-76 Link Here
71
		super.setUp();
71
		super.setUp();
72
		bundle = Platform
72
		bundle = Platform
73
				.getBundle("org.eclipse.wst.xml.xpath2.processor.tests");
73
				.getBundle("org.eclipse.wst.xml.xpath2.processor.tests");
74
		System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
74
		System.setProperty("javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema","org.apache.xerces.jaxp.validation.XMLSchemaFactory");
75
		System.setProperty("javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema","org.apache.xerces.jaxp.validation.XMLSchemaFactory");
75
	}
76
	}
76
77
(-)src/org/eclipse/wst/xml/xpath2/processor/test/TestBugs.java (-1 / +25 lines)
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
}

Return to bug 281046