aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2018-11-13 23:00:53 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2018-11-13 23:00:53 +0000
commit276ed569105d5e0fda01055c4a449fd5e2b080f7 (patch)
tree3192788f0b1525193fdf34adb267bb567b27de19 /src/test
parentac6811e50d1f32a4eb14785282099c316dcfc7fd (diff)
downloadjackcess-276ed569105d5e0fda01055c4a449fd5e2b080f7.tar.gz
jackcess-276ed569105d5e0fda01055c4a449fd5e2b080f7.zip
cache and reuse DecimalFormat instances
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1222 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java6
1 files changed, 6 insertions, 0 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 4c50f12..17ad3d7 100644
--- a/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/impl/expr/ExpressionatorTest.java
@@ -19,6 +19,7 @@ package com.healthmarketscience.jackcess.impl.expr;
import java.io.BufferedReader;
import java.io.FileReader;
import java.math.BigDecimal;
+import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
@@ -604,6 +605,11 @@ public class ExpressionatorTest extends TestCase
return NumericConfig.US_NUMERIC_CONFIG;
}
+ public DecimalFormat createDecimalFormat(String formatStr) {
+ return new DecimalFormat(
+ formatStr, NumericConfig.US_NUMERIC_CONFIG.getDecimalFormatSymbols());
+ }
+
public FunctionLookup getFunctionLookup() {
return DefaultFunctions.LOOKUP;
}