OPENJPA-2491. Variation of the patch as provided by Romain Manni-Bucau. Besides clearing the cache, I also corrected the spelling of "parameter" in this testcase name and another related testcase.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1588977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2014-04-21 20:30:10 +00:00
parent b3d7fe8829
commit 10089d6126
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ import org.apache.openjpa.persistence.test.SingleEMFTestCase;
* @author Pinaki Poddar
*
*/
public class TestInExpressionParamaterBinding extends SingleEMFTestCase {
public class TestInExpressionParameterBinding extends SingleEMFTestCase {
private static OpenJPAEntityManagerFactory _emf;
private static List<Integer> ORIGINAL_ZIPS;
private OpenJPAEntityManager _em;
@ -61,6 +61,7 @@ public class TestInExpressionParamaterBinding extends SingleEMFTestCase {
ORIGINAL_ZIPS = Arrays.asList(12345, 23456, 34567, 45678, 56789, 67890);
createData();
}
getPreparedQueryCache().clear();
_em = _emf.createEntityManager();
}

View File

@ -37,7 +37,7 @@ import org.apache.openjpa.persistence.OpenJPAPersistence;
* @author Pinaki Poddar
*
*/
public class TestMultithreadedReparametrization extends TestCase {
public class TestMultithreadedReparameterization extends TestCase {
private static String RESOURCE = "META-INF/persistence.xml";
private static String UNIT_NAME = "PreparedQuery";
protected static OpenJPAEntityManagerFactory emf;