openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r1359936 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria: EntityWithIdClass.java IdTestClass.java TestId.java
Date Tue, 10 Jul 2012 22:24:16 GMT
Author: allee8285
Date: Tue Jul 10 22:24:16 2012
New Revision: 1359936

URL: http://svn.apache.org/viewvc?rev=1359936&view=rev
Log:
Change TestId class name to IdTestClass to avoid JUnit 4 detects TestId is a test case and
generates "java.lang.Exception: No runnable methods" failures.

Added:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/IdTestClass.java
      - copied, changed from r1359431, openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestId.java
Removed:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestId.java
Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/EntityWithIdClass.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/EntityWithIdClass.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/EntityWithIdClass.java?rev=1359936&r1=1359935&r2=1359936&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/EntityWithIdClass.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/EntityWithIdClass.java
Tue Jul 10 22:24:16 2012
@@ -23,13 +23,13 @@ import javax.persistence.Id;
 import javax.persistence.IdClass;
 
 /**
- * A persistent class using a {@link TestId separate class} as its primary identifier.
+ * A persistent class using a {@link IdTestClass separate class} as its primary identifier.
  * 
  * @author Pinaki Poddar
  *
  */
 @Entity
-@IdClass(TestId.class)
+@IdClass(IdTestClass.class)
 public class EntityWithIdClass {
 	@Id
 	private String name;

Copied: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/IdTestClass.java
(from r1359431, openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestId.java)
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/IdTestClass.java?p2=openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/IdTestClass.java&p1=openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestId.java&r1=1359431&r2=1359936&rev=1359936&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestId.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/IdTestClass.java
Tue Jul 10 22:24:16 2012
@@ -31,7 +31,7 @@ package org.apache.openjpa.persistence.c
  * @author Pinaki Poddar
  *
  */
-public class TestId {
+public class IdTestClass {
         String name;
         long   ssn;
         
@@ -52,7 +52,7 @@ public class TestId {
                         return false;
                 if (getClass() != obj.getClass())
                         return false;
-                TestId other = (TestId) obj;
+                IdTestClass other = (IdTestClass) obj;
                 if (name == null) {
                         if (other.name != null)
                                 return false;



Mime
View raw message