Re-enable and document @Ignore'd tests
Documented why static nested test cases in the spring-test module are ignored, explaining that such "TestCase classes are run manually by the enclosing test class". Prior to the migration to Gradle (i.e., with Spring Build), these tests would not have been picked up by the test suite since they end with a "TestCase" suffix instead of "Test" or "Tests". Re-enabled HibernateMultiEntityManagerFactoryIntegrationTests. For the remaining tests that were disabled as a result of the migration to Gradle, comments have been added to the @Ignore declarations. Issue: SPR-8116, SPR-9398
This commit is contained in:
@@ -26,7 +26,6 @@ import org.springframework.orm.jpa.AbstractContainerEntityManagerFactoryIntegrat
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
*/
|
||||
@org.junit.Ignore // TODO SPR-8116 work out JPA 1 vs 2 classpath issues in spring-orm
|
||||
public class HibernateMultiEntityManagerFactoryIntegrationTests extends
|
||||
AbstractContainerEntityManagerFactoryIntegrationTests {
|
||||
|
||||
|
||||
@@ -16,17 +16,20 @@
|
||||
|
||||
package org.springframework.orm.jpa.openjpa;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
/**
|
||||
* Test that AspectJ weaving (in particular the currently shipped aspects) work with JPA (see SPR-3873 for more details).
|
||||
*
|
||||
* @author Ramnivas Laddad
|
||||
*/
|
||||
@org.junit.Ignore // TODO SPR-8116 this test causes gradle to hang.
|
||||
// TODO SPR-8116 this test causes gradle to hang.
|
||||
// when run independently e.g. `./gradlew :spring-orm:test -Dtest.single=OpenJpaEntity...`
|
||||
// it works fine. When run together with all other tests e.g. `./gradlew :spring-orm:test`
|
||||
// it hangs on the 'testCanSerializeProxies' test method. Note that this test DOES pass in
|
||||
// Eclipse, even when the entire 'spring-orm' module is run. Run gradle with '-i' to
|
||||
// get more details when reproducing the hanging test.
|
||||
@Ignore("this test causes gradle to hang")
|
||||
public class OpenJpaEntityManagerFactoryWithAspectJWeavingIntegrationTests extends OpenJpaEntityManagerFactoryIntegrationTests {
|
||||
|
||||
protected String[] getConfigLocations() {
|
||||
|
||||
@@ -19,6 +19,7 @@ package org.springframework.orm.jpa.toplink;
|
||||
import javax.persistence.EntityManager;
|
||||
import javax.persistence.EntityManagerFactory;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.springframework.orm.jpa.AbstractContainerEntityManagerFactoryIntegrationTests;
|
||||
|
||||
/**
|
||||
@@ -26,13 +27,15 @@ import org.springframework.orm.jpa.AbstractContainerEntityManagerFactoryIntegrat
|
||||
*
|
||||
* @author Costin Leau
|
||||
*/
|
||||
@org.junit.Ignore // TODO SPR-8116 this test causes gradle to hang. See OJEMFWAJWIT.
|
||||
// TODO SPR-8116 this test causes gradle to hang. See OJEMFWAJWIT.
|
||||
@Ignore("this test causes gradle to hang. See OJEMFWAJWIT.")
|
||||
public class TopLinkMultiEntityManagerFactoryIntegrationTests extends
|
||||
AbstractContainerEntityManagerFactoryIntegrationTests {
|
||||
|
||||
private EntityManagerFactory entityManagerFactory2;
|
||||
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public TopLinkMultiEntityManagerFactoryIntegrationTests() {
|
||||
setAutowireMode(AUTOWIRE_BY_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user