diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2018-06-27 03:50:11 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2018-06-27 03:50:11 +0000 |
commit | a6f33b99a6df0a70305e6e24b1770b3a9b818962 (patch) | |
tree | fee3103ff6277d83a06456650d95e114edbb4e3e /src/test | |
parent | 1595c573b1a881de80a2803a70caa448e7404314 (diff) | |
download | jackcess-a6f33b99a6df0a70305e6e24b1770b3a9b818962.tar.gz jackcess-a6f33b99a6df0a70305e6e24b1770b3a9b818962.zip |
ditch default parse context
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1175 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java b/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java index 2f6e738..39745d0 100644 --- a/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java +++ b/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java @@ -343,7 +343,8 @@ public class ExpressionatorTest extends TestCase private static void validateExpr(String exprStr, String debugStr, String cleanStr) { Expression expr = Expressionator.parse( - Expressionator.Type.FIELD_VALIDATOR, exprStr, null, null); + Expressionator.Type.FIELD_VALIDATOR, exprStr, null, + new TestParseContext()); String foundDebugStr = expr.toDebugString(); if(foundDebugStr.startsWith("<EImplicitCompOp>")) { assertEquals("<EImplicitCompOp>{<EThisValue>{<THIS_COL>} = " + @@ -381,7 +382,8 @@ public class ExpressionatorTest extends TestCase private static Boolean evalCondition(String exprStr, String thisVal) { Expression expr = Expressionator.parse( - Expressionator.Type.FIELD_VALIDATOR, exprStr, null, new TestParseContext()); + Expressionator.Type.FIELD_VALIDATOR, exprStr, null, + new TestParseContext()); return (Boolean)expr.eval(new TestEvalContext(BuiltinOperators.toValue(thisVal))); } @@ -410,7 +412,7 @@ public class ExpressionatorTest extends TestCase } public Function getExpressionFunction(String name) { - return DefaultFunctions.getFunction(name); + return DefaultFunctions.LOOKUP.getFunction(name); } } |