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.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1359936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2012-07-10 22:24:16 +00:00
parent 1246de0774
commit b5c83f05f9
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -31,7 +31,7 @@ package org.apache.openjpa.persistence.criteria;
* @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;