aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2018-09-06 02:28:08 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2018-09-06 02:28:08 +0000
commit1236f27d918932f9454f21e118d5eb35077292a3 (patch)
treeac0d8f04aed4ed4d799686f1eb604bfc65ef71ec /src/test
parent44b3742c6d5075d88e013f3e4177df724cf37fa1 (diff)
downloadjackcess-1236f27d918932f9454f21e118d5eb35077292a3.tar.gz
jackcess-1236f27d918932f9454f21e118d5eb35077292a3.zip
refactor support for working with Value instances
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1192 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/PropertyExpressionTest.java4
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/PropertyExpressionTest.java b/src/test/java/com/healthmarketscience/jackcess/PropertyExpressionTest.java
index b73496f..e5d7295 100644
--- a/src/test/java/com/healthmarketscience/jackcess/PropertyExpressionTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/PropertyExpressionTest.java
@@ -26,9 +26,9 @@ import com.healthmarketscience.jackcess.expr.Function;
import com.healthmarketscience.jackcess.expr.FunctionLookup;
import com.healthmarketscience.jackcess.expr.TemporalConfig;
import com.healthmarketscience.jackcess.expr.Value;
-import com.healthmarketscience.jackcess.impl.expr.BuiltinOperators;
import com.healthmarketscience.jackcess.impl.expr.DefaultFunctions;
import com.healthmarketscience.jackcess.impl.expr.FunctionSupport;
+import com.healthmarketscience.jackcess.impl.expr.ValueSupport;
import junit.framework.TestCase;
import static com.healthmarketscience.jackcess.Database.*;
@@ -354,7 +354,7 @@ public class PropertyExpressionTest extends TestCase
@Override
protected Value eval0(EvalContext ctx) {
Object val = ctx.get("someKey");
- return BuiltinOperators.toValue("FOO_" + val);
+ return ValueSupport.toValue("FOO_" + val);
}
};
}
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 8e077b0..188172d 100644
--- a/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java
@@ -429,12 +429,12 @@ public class ExpressionatorTest extends TestCase
TestContext tc = new TestContext() {
@Override
public Value getThisColumnValue() {
- return BuiltinOperators.toValue(23.0);
+ return ValueSupport.toValue(23.0);
}
@Override
public Value getIdentifierValue(Identifier identifier) {
- return BuiltinOperators.toValue(23.0);
+ return ValueSupport.toValue(23.0);
}
};
@@ -536,7 +536,7 @@ public class ExpressionatorTest extends TestCase
}
private static Boolean evalCondition(String exprStr, String thisVal) {
- TestContext tc = new TestContext(BuiltinOperators.toValue(thisVal));
+ TestContext tc = new TestContext(ValueSupport.toValue(thisVal));
Expression expr = Expressionator.parse(
Expressionator.Type.FIELD_VALIDATOR, exprStr, null, tc);
return (Boolean)expr.eval(tc);
@@ -552,7 +552,7 @@ public class ExpressionatorTest extends TestCase
}
static BigDecimal toBD(BigDecimal bd) {
- return BuiltinOperators.normalize(bd);
+ return ValueSupport.normalize(bd);
}
private static class TestContext