mirror of
https://github.com/apache/openjpa.git
synced 2025-02-22 01:55:29 +00:00
OPENJPA-947. Reduce testcase logging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed8ec02432
commit
1d94611932
@ -600,6 +600,9 @@
|
|||||||
<exclude>org/apache/openjpa/persistence/meta/TestSequenceAssigned.java</exclude>
|
<exclude>org/apache/openjpa/persistence/meta/TestSequenceAssigned.java</exclude>
|
||||||
<exclude>org/apache/openjpa/persistence/meta/TestValueStrategies.java</exclude>
|
<exclude>org/apache/openjpa/persistence/meta/TestValueStrategies.java</exclude>
|
||||||
<exclude>org/apache/openjpa/persistence/meta/TestXMLPersistenceMetaDataSerializer.java</exclude>
|
<exclude>org/apache/openjpa/persistence/meta/TestXMLPersistenceMetaDataSerializer.java</exclude>
|
||||||
|
|
||||||
|
<!-- TestPMMemory creates heapdumps etc and there's no real asserts within the test. -->
|
||||||
|
<exclude>org/apache/openjpa/persistence/kernel/TestPMMemory.java</exclude>
|
||||||
|
|
||||||
</excludes>
|
</excludes>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
|
@ -159,7 +159,6 @@ public class TestBadJdbcUrl extends TestCase {
|
|||||||
assertNotNull(actual);
|
assertNotNull(actual);
|
||||||
Class actualType = actual.getClass();
|
Class actualType = actual.getClass();
|
||||||
if (!targetType.isAssignableFrom(actualType)) {
|
if (!targetType.isAssignableFrom(actualType)) {
|
||||||
actual.printStackTrace();
|
|
||||||
fail(targetType.getName() + " is not assignable from "
|
fail(targetType.getName() + " is not assignable from "
|
||||||
+ actualType.getName());
|
+ actualType.getName());
|
||||||
}
|
}
|
||||||
@ -178,7 +177,6 @@ public class TestBadJdbcUrl extends TestCase {
|
|||||||
nested = next;
|
nested = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
actual.printStackTrace();
|
|
||||||
fail("No nested type " + nestedTargetType + " in " + actual);
|
fail("No nested type " + nestedTargetType + " in " + actual);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,8 +50,7 @@ public class TestSpecificationConfiguration extends SingleEMFTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testLowerVersionCanBeSet() {
|
public void testLowerVersionCanBeSet() {
|
||||||
super.setUp("openjpa.Specification", "JPA 1.0",
|
super.setUp("openjpa.Specification", "JPA 1.0");
|
||||||
"openjpa.Log", "DefaultLevel=WARN");
|
|
||||||
Specification spec = getSpecifcation();
|
Specification spec = getSpecifcation();
|
||||||
|
|
||||||
assertNotNull(spec);
|
assertNotNull(spec);
|
||||||
@ -69,8 +68,7 @@ public class TestSpecificationConfiguration extends SingleEMFTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testDifferentSpecCanBeSet() {
|
public void testDifferentSpecCanBeSet() {
|
||||||
super.setUp("openjpa.Specification", "jdo 3.0",
|
super.setUp("openjpa.Specification", "jdo 3.0");
|
||||||
"openjpa.Log", "DefaultLevel=WARN");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testSpecCanBeSetToNullString() {
|
public void testSpecCanBeSetToNullString() {
|
||||||
|
@ -225,7 +225,6 @@ public class TestOpenJPAConfiguration
|
|||||||
config.setConnectionFactoryMode("aoeu");
|
config.setConnectionFactoryMode("aoeu");
|
||||||
fail("setting the ConnectionFactoryMode to aoeu should fail");
|
fail("setting the ConnectionFactoryMode to aoeu should fail");
|
||||||
} catch (RuntimeException re) {
|
} catch (RuntimeException re) {
|
||||||
re.printStackTrace();
|
|
||||||
// as expected ... make sure the exception suggests the
|
// as expected ... make sure the exception suggests the
|
||||||
// valid names in the message.
|
// valid names in the message.
|
||||||
assertTrue(-1 != re.getMessage().indexOf("managed"));
|
assertTrue(-1 != re.getMessage().indexOf("managed"));
|
||||||
|
@ -572,11 +572,6 @@ public class TestCriteria extends SingleEMFTestCase {
|
|||||||
+ "JPQL [" + jpql + "]\r\n"
|
+ "JPQL [" + jpql + "]\r\n"
|
||||||
+ "error : " + jpqlError.getMessage());
|
+ "error : " + jpqlError.getMessage());
|
||||||
} else {
|
} else {
|
||||||
System.err.println("WARN: Both JPQL and QueryDefinition are invalid"
|
|
||||||
+ "\r\nJPQL " + jpql + "\r\n"
|
|
||||||
+ "error :" + jpqlError.getMessage() + "\r\n"
|
|
||||||
+ "Criteria " + qb.toJPQL(q) + "\r\n"
|
|
||||||
+ "error : " + criteriaError.getMessage());
|
|
||||||
compareLiterally(jpql, q);
|
compareLiterally(jpql, q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,6 @@ public class TestStatistics extends SingleEMFTestCase {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void testPerfectCache() {
|
public void testPerfectCache() {
|
||||||
print(stats);
|
|
||||||
// populate a bunch of customer and order
|
// populate a bunch of customer and order
|
||||||
int nCustomer = 20;
|
int nCustomer = 20;
|
||||||
int nOrder = 10;
|
int nOrder = 10;
|
||||||
@ -102,12 +101,7 @@ public class TestStatistics extends SingleEMFTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void print(CacheStatistics stats) {
|
void print(CacheStatistics stats) {
|
||||||
System.err
|
// TODO log instead of printing to stderr.
|
||||||
.print("r:" + stats.getTotalReadCount() + " w:"
|
|
||||||
+ stats.getTotalWriteCount() + " h:"
|
|
||||||
+ stats.getTotalHitCount());
|
|
||||||
System.err.println(" since last reset r:" + stats.getReadCount()
|
|
||||||
+ " w:" + stats.getWriteCount() + " h:" + stats.getHitCount());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1148,7 +1148,6 @@ public class TestEmbeddable extends SingleEMFTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void createItem3(EntityManager em, int id) {
|
public void createItem3(EntityManager em, int id) {
|
||||||
System.out.println("In CreateItem3, id = " + id);
|
|
||||||
Item3 item = new Item3();
|
Item3 item = new Item3();
|
||||||
item.setId(id);
|
item.setId(id);
|
||||||
for (int i = 0; i < numImagesPerItem; i++) {
|
for (int i = 0; i < numImagesPerItem; i++) {
|
||||||
|
@ -696,8 +696,6 @@ public class TestEmbeddableXml extends SingleEMFTestCase {
|
|||||||
createOrphanRemoval();
|
createOrphanRemoval();
|
||||||
EntityManager em = emf.createEntityManager();
|
EntityManager em = emf.createEntityManager();
|
||||||
CustomerXml c = em.find(CustomerXml.class, 1);
|
CustomerXml c = em.find(CustomerXml.class, 1);
|
||||||
System.err.println("C name = " + c.getName());
|
|
||||||
System.err.println("size before = " + c.getOrders().size());
|
|
||||||
c.setOrders(null);
|
c.setOrders(null);
|
||||||
em.getTransaction().begin();
|
em.getTransaction().begin();
|
||||||
em.persist(c);
|
em.persist(c);
|
||||||
|
@ -125,10 +125,6 @@ public class RemoteEventBase extends AbstractTestCase {
|
|||||||
for (Iterator iter = listener2.added.iterator(); iter.hasNext();) {
|
for (Iterator iter = listener2.added.iterator(); iter.hasNext();) {
|
||||||
Id roid = Id.newInstance(RuntimeTest1.class, oid);
|
Id roid = Id.newInstance(RuntimeTest1.class, oid);
|
||||||
Id it = (Id) iter.next();
|
Id it = (Id) iter.next();
|
||||||
System.out.println("===ROID: " + roid.getId() + " +++== ITER: " +
|
|
||||||
it.getId() + " Content: " + listener2.added + "ROID Cont: " +
|
|
||||||
roid);
|
|
||||||
System.out.println("Result of COMP " + it.equals(roid));
|
|
||||||
//FixMe --det. why it.equals(roid) fails when the are actually equal
|
//FixMe --det. why it.equals(roid) fails when the are actually equal
|
||||||
if (it.toString().equals(roid.toString())) {
|
if (it.toString().equals(roid.toString())) {
|
||||||
pass = true;
|
pass = true;
|
||||||
@ -162,10 +158,6 @@ public class RemoteEventBase extends AbstractTestCase {
|
|||||||
pass = false;
|
pass = false;
|
||||||
for (Iterator iter = listener2.updated.iterator(); iter.hasNext();) {
|
for (Iterator iter = listener2.updated.iterator(); iter.hasNext();) {
|
||||||
Id it = (Id) iter.next();
|
Id it = (Id) iter.next();
|
||||||
System.out.println("===ROID: " + roid.getId() + "+++== ITER: " +
|
|
||||||
it.getId() + "Content: " + listener2.added);
|
|
||||||
System.out.println("Result of COMP " + it.equals(roid));
|
|
||||||
|
|
||||||
if (it.toString().equals(roid.toString())) {
|
if (it.toString().equals(roid.toString())) {
|
||||||
pass = true;
|
pass = true;
|
||||||
break;
|
break;
|
||||||
@ -198,10 +190,6 @@ public class RemoteEventBase extends AbstractTestCase {
|
|||||||
pass = false;
|
pass = false;
|
||||||
for (Iterator iter = listener2.deleted.iterator(); iter.hasNext();) {
|
for (Iterator iter = listener2.deleted.iterator(); iter.hasNext();) {
|
||||||
Id it = (Id) iter.next();
|
Id it = (Id) iter.next();
|
||||||
System.out.println("===ROID: " + roid.getId() + "+++== ITER: " +
|
|
||||||
it.getId() + "Content: " + listener2.added);
|
|
||||||
System.out.println("Result of COMP " + it.equals(roid));
|
|
||||||
|
|
||||||
if (it.toString().equals(roid.toString())) {
|
if (it.toString().equals(roid.toString())) {
|
||||||
pass = true;
|
pass = true;
|
||||||
break;
|
break;
|
||||||
|
@ -52,8 +52,7 @@ public class TestAutoIncrement extends SingleEMFTestCase {
|
|||||||
} else {
|
} else {
|
||||||
super.setUp(CLEAR_TABLES, PObjectNative.class,
|
super.setUp(CLEAR_TABLES, PObjectNative.class,
|
||||||
"openjpa.jdbc.DBDictionary",
|
"openjpa.jdbc.DBDictionary",
|
||||||
"oracle(UseTriggersForAutoAssign=true)",
|
"oracle(UseTriggersForAutoAssign=true)");
|
||||||
"openjpa.Log", "SQL=TRACE");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ public class TestQueryParameterBinding extends SingleEMFTestCase {
|
|||||||
private static double DBL_VALUE = 3.0;
|
private static double DBL_VALUE = 3.0;
|
||||||
|
|
||||||
private EntityManager em;
|
private EntityManager em;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp(CLEAR_TABLES, Binder.class);
|
super.setUp(CLEAR_TABLES, Binder.class);
|
||||||
|
@ -67,25 +67,13 @@ public class TestFinderCache extends SQLListenerTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testFinder() {
|
public void testFinder() {
|
||||||
int N = 200;
|
|
||||||
|
|
||||||
emf = createEMF("openjpa.jdbc.FinderCache", "false");
|
emf = createEMF("openjpa.jdbc.FinderCache", "false");
|
||||||
run(1, Book.class, BOOK_IDS); // for warmup
|
run(1, Book.class, BOOK_IDS); // for warmup
|
||||||
|
|
||||||
assertNull(getCache());
|
assertNull(getCache());
|
||||||
long without = run(N, Book.class, BOOK_IDS);
|
|
||||||
|
|
||||||
emf = createEMF("openjpa.jdbc.FinderCache", "true");
|
emf = createEMF("openjpa.jdbc.FinderCache", "true");
|
||||||
assertNotNull(getCache());
|
assertNotNull(getCache());
|
||||||
long with = run(N, Book.class, BOOK_IDS);
|
|
||||||
|
|
||||||
getCache().getStatistics().dump(System.out);
|
|
||||||
|
|
||||||
long pct = (without-with)*100/without;
|
|
||||||
System.err.println(BOOK_IDS.length*N + " find");
|
|
||||||
System.err.println("with " + with);
|
|
||||||
System.err.println("without " + without);
|
|
||||||
System.err.println("delta " + (pct > 0 ? "+" : "") + pct + "%");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testSQLEventListener() {
|
public void testSQLEventListener() {
|
||||||
|
@ -292,7 +292,6 @@ public class TestPreparedQueryCache extends SQLListenerTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QueryStatistics stats = getCache().getStatistics();
|
QueryStatistics stats = getCache().getStatistics();
|
||||||
stats.dump(System.out);
|
|
||||||
|
|
||||||
assertEquals(N1, stats.getExecutionCount(jpql1));
|
assertEquals(N1, stats.getExecutionCount(jpql1));
|
||||||
assertEquals(N2, stats.getExecutionCount(jpql2));
|
assertEquals(N2, stats.getExecutionCount(jpql2));
|
||||||
@ -339,8 +338,6 @@ public class TestPreparedQueryCache extends SQLListenerTestCase {
|
|||||||
q2.getResultList();
|
q2.getResultList();
|
||||||
}
|
}
|
||||||
|
|
||||||
stats.dump(System.out);
|
|
||||||
|
|
||||||
assertEquals(N11, stats.getExecutionCount(jpql1));
|
assertEquals(N11, stats.getExecutionCount(jpql1));
|
||||||
assertEquals(N21, stats.getExecutionCount(jpql2));
|
assertEquals(N21, stats.getExecutionCount(jpql2));
|
||||||
assertEquals(N11+N21, stats.getExecutionCount());
|
assertEquals(N11+N21, stats.getExecutionCount());
|
||||||
@ -464,21 +461,10 @@ public class TestPreparedQueryCache extends SQLListenerTestCase {
|
|||||||
|
|
||||||
long delta = (without == 0) ? 0 : (without - with) * 100 / without;
|
long delta = (without == 0) ? 0 : (without - with) * 100 / without;
|
||||||
|
|
||||||
String sql = getSQL(realJPQL);
|
|
||||||
log("Execution time in nanos for " + SAMPLE_SIZE
|
|
||||||
+ " query execution with and without SQL cache:" + with + " "
|
|
||||||
+ without + " (" + delta + "%)");
|
|
||||||
log("JPQL: " + realJPQL);
|
|
||||||
log("SQL : " + sql);
|
|
||||||
if (delta < 0) {
|
if (delta < 0) {
|
||||||
if (FAIL_ON_PERF_DEGRADE)
|
if (FAIL_ON_PERF_DEGRADE)
|
||||||
assertFalse("change in execution time = " + delta + "%",
|
assertFalse("change in execution time = " + delta + "%",
|
||||||
delta < 0);
|
delta < 0);
|
||||||
else
|
|
||||||
log("*** WARN: Perforamce regression with cache." +
|
|
||||||
" Execution time degrades by " + delta + "%");
|
|
||||||
} else {
|
|
||||||
log("change in execution time = +" + delta + "%");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -495,7 +481,6 @@ public class TestPreparedQueryCache extends SQLListenerTestCase {
|
|||||||
*/
|
*/
|
||||||
long run(String jpql, Object[] params, boolean useCache, int N,
|
long run(String jpql, Object[] params, boolean useCache, int N,
|
||||||
boolean isNamedQuery, int expectedCount, boolean checkHits) {
|
boolean isNamedQuery, int expectedCount, boolean checkHits) {
|
||||||
trace("Executing " + N + " times " + (useCache ? " with " : "without") + " cache");
|
|
||||||
List<Long> stats = new ArrayList<Long>();
|
List<Long> stats = new ArrayList<Long>();
|
||||||
sql.clear();
|
sql.clear();
|
||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
@ -559,15 +544,6 @@ public class TestPreparedQueryCache extends SQLListenerTestCase {
|
|||||||
return "'"+s+"'";
|
return "'"+s+"'";
|
||||||
}
|
}
|
||||||
|
|
||||||
void log(String s) {
|
|
||||||
System.err.println(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
void trace(String s) {
|
|
||||||
if (Boolean.getBoolean("trace"))
|
|
||||||
System.err.println(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
void walk(List list) {
|
void walk(List list) {
|
||||||
Iterator i = list.iterator();
|
Iterator i = list.iterator();
|
||||||
while (i.hasNext())
|
while (i.hasNext())
|
||||||
|
@ -43,8 +43,7 @@ public class TestEJBNullValues extends AbstractTestCase {
|
|||||||
fail("Null value allowed");
|
fail("Null value allowed");
|
||||||
}
|
}
|
||||||
catch (Exception jfe) {
|
catch (Exception jfe) {
|
||||||
System.out
|
// Exception expected...Null value not allowed...
|
||||||
.println("Exception expected...Null value not allowed...");
|
|
||||||
}
|
}
|
||||||
endEm(pm);
|
endEm(pm);
|
||||||
}
|
}
|
||||||
|
@ -38,8 +38,6 @@ public class TestPojoWithoutAnnotationsCannotBePersisted
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
System.out.println("Running test " + this.getName() + " of " +
|
|
||||||
this.getClass().getSimpleName());
|
|
||||||
pojo = new UnAnnotPojo();
|
pojo = new UnAnnotPojo();
|
||||||
pojo.setName("failure");
|
pojo.setName("failure");
|
||||||
pojo.setNum(0);
|
pojo.setNum(0);
|
||||||
|
@ -43,8 +43,7 @@ public abstract class AbstractNullityTestCase extends SingleEMFTestCase {
|
|||||||
fail();
|
fail();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (!expected.isAssignableFrom(e.getClass())) {
|
if (!expected.isAssignableFrom(e.getClass())) {
|
||||||
e.printStackTrace();
|
fail("Expected " + expected.getName() + " receieved " + e);
|
||||||
fail("Expected " + expected.getName());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -56,11 +55,7 @@ public abstract class AbstractNullityTestCase extends SingleEMFTestCase {
|
|||||||
em.persist(pc);
|
em.persist(pc);
|
||||||
else
|
else
|
||||||
em.merge(pc);
|
em.merge(pc);
|
||||||
try {
|
|
||||||
em.getTransaction().commit();
|
em.getTransaction().commit();
|
||||||
} catch (RuntimeException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
fail();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,6 @@ public class TestChainEntities extends SingleEMFTestCase {
|
|||||||
aid = a.getId ();
|
aid = a.getId ();
|
||||||
em.getTransaction ().commit ();
|
em.getTransaction ().commit ();
|
||||||
em.close ();
|
em.close ();
|
||||||
System.out.println ("ChainEntityA id = " + aid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testChainEntities () {
|
public void testChainEntities () {
|
||||||
|
@ -35,14 +35,12 @@ public class LibServiceImpl implements LibService {
|
|||||||
|
|
||||||
private void closeEM(EntityManager em) {
|
private void closeEM(EntityManager em) {
|
||||||
if (em != null && em.isOpen()) {
|
if (em != null && em.isOpen()) {
|
||||||
System.out.println("Closing EM: " + em);
|
|
||||||
em.close();
|
em.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private EntityManager openEM() {
|
private EntityManager openEM() {
|
||||||
EntityManager em = txEMF.getTransactionalEntityManager();
|
EntityManager em = txEMF.getTransactionalEntityManager();
|
||||||
System.out.println("Opening EM: " + em);
|
|
||||||
return em;
|
return em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,6 @@ public class TestLibService extends SingleEMFTestCase
|
|||||||
"unexpected number of subjects for the book " + qTitle, 2,
|
"unexpected number of subjects for the book " + qTitle, 2,
|
||||||
subjects.size());
|
subjects.size());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
|
||||||
fail("Unable to findBookByTitle");
|
fail("Unable to findBookByTitle");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -98,7 +97,6 @@ public class TestLibService extends SingleEMFTestCase
|
|||||||
assertEquals("the borrower found is not " + bName, bName,
|
assertEquals("the borrower found is not " + bName, bName,
|
||||||
harry.getName());
|
harry.getName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
|
||||||
fail("Unable to find borrower by name");
|
fail("Unable to find borrower by name");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,8 @@ import org.apache.openjpa.meta.ClassMetaData;
|
|||||||
import org.apache.openjpa.persistence.JPAFacadeHelper;
|
import org.apache.openjpa.persistence.JPAFacadeHelper;
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
||||||
|
|
||||||
|
import sun.security.action.GetLongAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base test class providing persistence utilities.
|
* Base test class providing persistence utilities.
|
||||||
*
|
*
|
||||||
@ -508,9 +510,6 @@ public abstract class PersistenceTestCase
|
|||||||
// swallow;
|
// swallow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.err.println("WARN: " + getClass().getName() + " not run " +
|
|
||||||
"in the current platform because none of the specified " +
|
|
||||||
" driver(s) " + Arrays.toString(drivers) + " can be loaded");
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,11 @@
|
|||||||
<version>2.0.0-SNAPSHOT</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<properties>
|
<properties>
|
||||||
|
<test.jvm.arguments>-Xmx500m</test.jvm.arguments>
|
||||||
<openjpa.loglevel>INFO</openjpa.loglevel>
|
<openjpa.loglevel>INFO</openjpa.loglevel>
|
||||||
<!-- to set debug arguments, you might set the following at the command line:
|
<!-- to set debug arguments, you might set the following at the command line:
|
||||||
-Dsurefire.jvm.args="-Xmx500m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000"
|
-Dtest.jvm.args="-Xmx500m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000"
|
||||||
-->
|
-->
|
||||||
<surefire.jvm.args>-Xmx500m</surefire.jvm.args>
|
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -147,6 +147,24 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<argLine>${test.jvm.arguments}</argLine>
|
||||||
|
<systemProperties>
|
||||||
|
<property>
|
||||||
|
<name>openjpa.Log</name>
|
||||||
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>derby.stream.error.file</name>
|
||||||
|
<value>target/derby.log</value>
|
||||||
|
</property>
|
||||||
|
</systemProperties>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
@ -23,9 +23,6 @@
|
|||||||
<class>org.apache.openjpa.slice.Person</class>
|
<class>org.apache.openjpa.slice.Person</class>
|
||||||
<class>org.apache.openjpa.slice.Address</class>
|
<class>org.apache.openjpa.slice.Address</class>
|
||||||
<class>org.apache.openjpa.slice.Country</class>
|
<class>org.apache.openjpa.slice.Country</class>
|
||||||
<properties>
|
|
||||||
<property name="openjpa.Log" value="DefaultLevel=WARN, Enhance=TRACE"/>
|
|
||||||
</properties>
|
|
||||||
</persistence-unit>
|
</persistence-unit>
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +39,6 @@
|
|||||||
<property name="openjpa.slice.DistributionPolicy" value="org.apache.openjpa.slice.policy.UserDistributionPolicy"/>
|
<property name="openjpa.slice.DistributionPolicy" value="org.apache.openjpa.slice.policy.UserDistributionPolicy"/>
|
||||||
<property name="openjpa.slice.ThreadingPolicy" value="fixed"/>
|
<property name="openjpa.slice.ThreadingPolicy" value="fixed"/>
|
||||||
|
|
||||||
<property name="openjpa.Log" value="DefaultLevel=INFO, Enhance=TRACE, SQL=TRACE"/>
|
|
||||||
<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
|
<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
|
||||||
<property name="openjpa.ConnectionUserName" value=""/>
|
<property name="openjpa.ConnectionUserName" value=""/>
|
||||||
<property name="openjpa.ConnectionPassword" value=""/>
|
<property name="openjpa.ConnectionPassword" value=""/>
|
||||||
@ -70,7 +66,6 @@
|
|||||||
<property name="openjpa.slice.Two.ConnectionURL" value="jdbc:derby:target/database/openjpa-slice2;create=true"/>
|
<property name="openjpa.slice.Two.ConnectionURL" value="jdbc:derby:target/database/openjpa-slice2;create=true"/>
|
||||||
|
|
||||||
<property name="openjpa.Multithreaded" value="false"/>
|
<property name="openjpa.Multithreaded" value="false"/>
|
||||||
<property name="openjpa.Log" value="DefaultLevel=INFO, Enhance=TRACE, SQL=TRACE"/>
|
|
||||||
<property name="openjpa.jdbc.SynchronizeMappings" value="refresh"/>
|
<property name="openjpa.jdbc.SynchronizeMappings" value="refresh"/>
|
||||||
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
||||||
<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
|
<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
|
||||||
@ -100,7 +95,6 @@
|
|||||||
<property name="openjpa.Connection2URL" value="jdbc:derby:target/database/openjpa-slice1;create=true"/>
|
<property name="openjpa.Connection2URL" value="jdbc:derby:target/database/openjpa-slice1;create=true"/>
|
||||||
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
|
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
|
||||||
<property name="openjpa.QueryCompilationCache" value="false"/>
|
<property name="openjpa.QueryCompilationCache" value="false"/>
|
||||||
<property name="openjpa.Log" value="DefaultLevel=WARN, Enhance=TRACE, SQL=TRACE"/>
|
|
||||||
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
||||||
<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
|
<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
|
||||||
</properties>
|
</properties>
|
||||||
@ -123,7 +117,6 @@
|
|||||||
|
|
||||||
<property name="openjpa.Connection2URL" value="jdbc:derby:target/database/openjpa-slice1;create=true"/>
|
<property name="openjpa.Connection2URL" value="jdbc:derby:target/database/openjpa-slice1;create=true"/>
|
||||||
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
|
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
|
||||||
<property name="openjpa.Log" value="DefaultLevel=WARN, Enhance=TRACE, SQL=TRACE"/>
|
|
||||||
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
||||||
</properties>
|
</properties>
|
||||||
</persistence-unit>
|
</persistence-unit>
|
||||||
@ -144,7 +137,6 @@
|
|||||||
<property name="openjpa.slice.Two.ConnectionURL" value="jdbc:mysql://localhost/slice2"/>
|
<property name="openjpa.slice.Two.ConnectionURL" value="jdbc:mysql://localhost/slice2"/>
|
||||||
|
|
||||||
<property name="openjpa.Multithreaded" value="false"/>
|
<property name="openjpa.Multithreaded" value="false"/>
|
||||||
<property name="openjpa.Log" value="DefaultLevel=INFO, Enhance=TRACE, SQL=TRACE"/>
|
|
||||||
<property name="openjpa.jdbc.SynchronizeMappings" value="refresh"/>
|
<property name="openjpa.jdbc.SynchronizeMappings" value="refresh"/>
|
||||||
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
<property name="openjpa.jdbc.MappingDefaults" value="DefaultMissingInfo=true"/>
|
||||||
<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
|
<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user