mirror of https://github.com/apache/openjpa.git
Fixing validation test hierarchy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804333 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
286f708d7d
commit
c8fa380048
|
@ -21,7 +21,6 @@ package org.apache.openjpa.integration.validation;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import javax.persistence.Query;
|
import javax.persistence.Query;
|
||||||
import javax.persistence.spi.ValidationMode;
|
|
||||||
import javax.validation.ConstraintViolation;
|
import javax.validation.ConstraintViolation;
|
||||||
import javax.validation.ConstraintViolationException;
|
import javax.validation.ConstraintViolationException;
|
||||||
|
|
||||||
|
@ -30,9 +29,7 @@ import org.apache.openjpa.lib.log.Log;
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
||||||
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
||||||
import org.apache.openjpa.persistence.test.AbstractCachedEMFTestCase;
|
|
||||||
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
||||||
import org.apache.openjpa.persistence.test.SingleEMFTestCase;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the new Bean Validation constraint support in the JPA 2.0 spec by
|
* Tests the new Bean Validation constraint support in the JPA 2.0 spec by
|
||||||
|
@ -78,7 +75,7 @@ import org.apache.openjpa.persistence.test.SingleEMFTestCase;
|
||||||
*
|
*
|
||||||
* @version $Rev$ $Date$
|
* @version $Rev$ $Date$
|
||||||
*/
|
*/
|
||||||
public class TestConstraints extends AbstractCachedEMFTestCase {
|
public class TestConstraints extends PersistenceTestCase {
|
||||||
|
|
||||||
private static OpenJPAEntityManagerFactorySPI emf = null;
|
private static OpenJPAEntityManagerFactorySPI emf = null;
|
||||||
|
|
||||||
|
|
|
@ -23,17 +23,15 @@ import java.util.Set;
|
||||||
|
|
||||||
import javax.validation.ConstraintViolation;
|
import javax.validation.ConstraintViolation;
|
||||||
import javax.validation.ConstraintViolationException;
|
import javax.validation.ConstraintViolationException;
|
||||||
import javax.validation.Validation;
|
|
||||||
|
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
||||||
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
||||||
import org.apache.openjpa.persistence.test.AbstractCachedEMFTestCase;
|
|
||||||
import org.apache.openjpa.persistence.test.AllowFailure;
|
import org.apache.openjpa.persistence.test.AllowFailure;
|
||||||
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
||||||
|
|
||||||
|
|
||||||
public class TestMappedSuper extends AbstractCachedEMFTestCase {
|
public class TestMappedSuper extends PersistenceTestCase {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Verify constraints defined via XML on a mapped superclass are validated.
|
* Verify constraints defined via XML on a mapped superclass are validated.
|
||||||
|
|
|
@ -25,14 +25,11 @@ import java.util.Set;
|
||||||
|
|
||||||
import javax.validation.ConstraintViolation;
|
import javax.validation.ConstraintViolation;
|
||||||
import javax.validation.ConstraintViolationException;
|
import javax.validation.ConstraintViolationException;
|
||||||
import javax.validation.Path;
|
|
||||||
import javax.validation.Path.Node;
|
|
||||||
|
|
||||||
import org.apache.openjpa.lib.log.Log;
|
import org.apache.openjpa.lib.log.Log;
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
import org.apache.openjpa.persistence.OpenJPAEntityManagerFactorySPI;
|
||||||
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
||||||
import org.apache.openjpa.persistence.test.AbstractCachedEMFTestCase;
|
|
||||||
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,7 +54,7 @@ import org.apache.openjpa.persistence.test.PersistenceTestCase;
|
||||||
*
|
*
|
||||||
* @version $Rev$ $Date$
|
* @version $Rev$ $Date$
|
||||||
*/
|
*/
|
||||||
public class TestValidationGroups extends AbstractCachedEMFTestCase {
|
public class TestValidationGroups extends PersistenceTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1a) verify validation occurs using the default validation groups
|
* 1a) verify validation occurs using the default validation groups
|
||||||
|
|
Loading…
Reference in New Issue