Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/testsuite/schema/UseCaseSEQTest.java')
-rw-r--r--tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/testsuite/schema/UseCaseSEQTest.java99
1 files changed, 0 insertions, 99 deletions
diff --git a/tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/testsuite/schema/UseCaseSEQTest.java b/tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/testsuite/schema/UseCaseSEQTest.java
deleted file mode 100644
index 4ba02837..00000000
--- a/tests/org.eclipse.wst.xml.xpath2.processor.tests/src/org/eclipse/wst/xml/xpath2/processor/testsuite/schema/UseCaseSEQTest.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - initial api and implementation bug 262765
- *******************************************************************************/
-
-package org.eclipse.wst.xml.xpath2.processor.testsuite.schema;
-
-import java.net.URL;
-
-import org.apache.xerces.xs.XSModel;
-import org.eclipse.wst.xml.xpath2.processor.DynamicError;
-import org.eclipse.wst.xml.xpath2.processor.ResultSequence;
-import org.eclipse.wst.xml.xpath2.processor.StaticError;
-import org.eclipse.wst.xml.xpath2.processor.XPathParserException;
-import org.eclipse.wst.xml.xpath2.processor.test.AbstractPsychoPathTest;
-
-
-public class UseCaseSEQTest extends AbstractPsychoPathTest {
-
- //In the Procedure section of Report1, what Instruments were used in the second Incision?
- public void test_seq_queries_results_q1() throws Exception {
- String inputFile = "/TestSources/report1.xml";
- String xqFile = "/Queries/XQuery/UseCase/UseCaseSEQ/seq-queries-results-q1.xq";
- String resultFile = "/ExpectedTestResults/UseCase/UseCaseSEQ/seq-queries-results-q1.txt";
- String expectedResult = getExpectedResult(resultFile);
- URL fileURL = bundle.getEntry(inputFile);
- loadDOMDocument(fileURL);
-
- // Get XML Schema Information for the Document
- XSModel schema = getGrammar();
-
- setupDynamicContext(schema);
-
- String xpath = extractXPathExpression(xqFile, inputFile);
- String actual = null;
- try {
- compileXPath(xpath);
- ResultSequence rs = evaluate(domDoc);
-
-
- actual = buildXMLResultString(rs);
-
- } catch (XPathParserException ex) {
- actual = ex.code();
- } catch (StaticError ex) {
- actual = ex.code();
- } catch (DynamicError ex) {
- actual = ex.code();
- }
-
- assertEquals("XPath Result Error " + xqFile + ":", expectedResult, actual);
-
-
- }
-
- //In the Procedure section of Report1, what are the first two Instruments to be used?
- public void test_seq_queries_results_q2() throws Exception {
- String inputFile = "/TestSources/report1.xml";
- String xqFile = "/Queries/XQuery/UseCase/UseCaseSEQ/seq-queries-results-q2.xq";
- String resultFile = "/ExpectedTestResults/UseCase/UseCaseSEQ/seq-queries-results-q2.txt";
- String expectedResult = getExpectedResult(resultFile);
- URL fileURL = bundle.getEntry(inputFile);
- loadDOMDocument(fileURL);
-
- // Get XML Schema Information for the Document
- XSModel schema = getGrammar();
-
- setupDynamicContext(schema);
-
- String xpath = extractXPathExpression(xqFile, inputFile);
- String actual = null;
- try {
- compileXPath(xpath);
- ResultSequence rs = evaluate(domDoc);
-
-
- actual = buildXMLResultString(rs);
-
- } catch (XPathParserException ex) {
- actual = ex.code();
- } catch (StaticError ex) {
- actual = ex.code();
- } catch (DynamicError ex) {
- actual = ex.code();
- }
-
- assertEquals("XPath Result Error " + xqFile + ":", expectedResult, actual);
-
-
- }
-
-}
- \ No newline at end of file

Back to the top