Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpelder2007-04-12 16:35:08 -0400
committerpelder2007-04-12 16:35:08 -0400
commitfa8f3e9ae43c97b2d63fd9ad1d90de1e7ed0d698 (patch)
treefb24d2991afa0e4d07db4da64c4b9ea1c29ffc7f /tests
parent0cba460b0cd2f6866694e346c2624b458be9d0d3 (diff)
downloadorg.eclipse.jet-fa8f3e9ae43c97b2d63fd9ad1d90de1e7ed0d698.tar.gz
org.eclipse.jet-fa8f3e9ae43c97b2d63fd9ad1d90de1e7ed0d698.tar.xz
org.eclipse.jet-fa8f3e9ae43c97b2d63fd9ad1d90de1e7ed0d698.zip
[172691] Correct application of predicate expressions to XPath steps.
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/XPathParserTests.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/XPathParserTests.java b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/XPathParserTests.java
index 99506aa..c8acbd2 100644
--- a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/XPathParserTests.java
+++ b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/XPathParserTests.java
@@ -4,10 +4,10 @@ import junit.framework.TestCase;
import org.eclipse.jet.internal.xpath.ast.BinaryOp;
import org.eclipse.jet.internal.xpath.ast.ExprNode;
+import org.eclipse.jet.internal.xpath.ast.FilterExpr;
import org.eclipse.jet.internal.xpath.ast.Function;
import org.eclipse.jet.internal.xpath.ast.LogicalOp;
import org.eclipse.jet.internal.xpath.ast.NumberLiteral;
-import org.eclipse.jet.internal.xpath.ast.Predicate;
import org.eclipse.jet.internal.xpath.ast.RelOp;
import org.eclipse.jet.internal.xpath.ast.Root;
import org.eclipse.jet.internal.xpath.ast.Step;
@@ -670,7 +670,7 @@ public class XPathParserTests extends TestCase {
ExprNode expr = xp.filterExpr();
assertNotNull(expr);
- assertTrue(expr instanceof Predicate);
+ assertTrue(expr instanceof FilterExpr);
assertEquals("$x[(3.0=4.0)]", expr.toString());
}
@@ -681,7 +681,7 @@ public class XPathParserTests extends TestCase {
ExprNode expr = xp.filterExpr();
assertNotNull(expr);
- assertTrue(expr instanceof Predicate);
+ assertTrue(expr instanceof FilterExpr);
assertEquals("$x[(3.0=4.0)][2.0]", expr.toString());
}
@@ -692,7 +692,7 @@ public class XPathParserTests extends TestCase {
ExprNode expr = xp.pathExpr();
assertNotNull(expr);
- assertTrue(expr instanceof Predicate);
+ assertTrue(expr instanceof Step);
assertEquals("<ctx>/child::foo/child::bar[(3.0=4.0)]", expr.toString());
}
@@ -703,7 +703,7 @@ public class XPathParserTests extends TestCase {
ExprNode expr = xp.pathExpr();
assertNotNull(expr);
- assertTrue(expr instanceof Predicate);
+ assertTrue(expr instanceof Step);
assertEquals("<ctx>/child::foo/child::bar[(3.0=4.0)][2.0]", expr.toString());
}
@@ -748,7 +748,7 @@ public class XPathParserTests extends TestCase {
ExprNode expr = xp.filterExpr();
assertNotNull(expr);
- assertTrue(expr instanceof Predicate);
+ assertTrue(expr instanceof FilterExpr);
assertEquals("floor('boo')[3.0]", expr.toString());
}

Back to the top