OPENJPA-1383:

Setting DateFormat.SHORT and LOCALE.US in testcases.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2009-11-12 17:03:34 +00:00
parent 091109041f
commit 2271a54167
2 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import java.text.ParseException;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import javax.persistence.EntityManager;
import javax.persistence.Query;
@ -45,7 +46,7 @@ public class TestTypedResults extends SingleEMFTestCase {
private static final String[] ORDER_DATES =
{ "3/12/2008 1:00 PM", "10/01/2008 1:51 AM", "12/12/2008 10:01 AM", "5/21/2009 3:23 PM" };
DateFormat df = DateFormat.getInstance(); // uses SHORT dateformat by default
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US);
public void setUp() throws Exception {
setUp(CLEAR_TABLES, Order.class, Item.class, Shop.class, Producer.class,

View File

@ -23,6 +23,7 @@ import java.text.DateFormat;
import java.text.ParseException;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import javax.persistence.EntityManager;
import javax.persistence.Query;
@ -46,7 +47,7 @@ public class TestJPQLMultiSelectTypedResults extends SingleEMFTestCase {
private static final String[] ORDER_DATES =
{ "3/12/2008 1:00 PM", "10/01/2008 1:51 AM", "12/12/2008 10:01 AM", "5/21/2009 3:23 PM" };
DateFormat df = DateFormat.getInstance(); // uses SHORT dateformat by default
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US);
public void setUp() throws Exception {
setUp(CLEAR_TABLES, Order.class, Item.class, Shop.class, Producer.class,