Polish and revive disabled tests
This commit revives some previously disabled tests and converts some usage of @Disabled to @EnabledForTestGroups(...).
This commit is contained in:
@@ -254,7 +254,7 @@ public class PersistenceXmlParsingTests {
|
||||
assertThat(info[0].excludeUnlistedClasses()).as("Exclude unlisted should default false in 1.0.").isFalse();
|
||||
}
|
||||
|
||||
@Disabled // not doing schema parsing anymore for JPA 2.0 compatibility
|
||||
@Disabled("not doing schema parsing anymore for JPA 2.0 compatibility")
|
||||
@Test
|
||||
public void testInvalidPersistence() throws Exception {
|
||||
PersistenceUnitReader reader = new PersistenceUnitReader(
|
||||
@@ -264,7 +264,7 @@ public class PersistenceXmlParsingTests {
|
||||
reader.readPersistenceUnitInfos(resource));
|
||||
}
|
||||
|
||||
@Disabled // not doing schema parsing anymore for JPA 2.0 compatibility
|
||||
@Disabled("not doing schema parsing anymore for JPA 2.0 compatibility")
|
||||
@Test
|
||||
public void testNoSchemaPersistence() throws Exception {
|
||||
PersistenceUnitReader reader = new PersistenceUnitReader(
|
||||
|
||||
@@ -31,7 +31,6 @@ import javax.persistence.PersistenceContextType;
|
||||
import javax.persistence.PersistenceProperty;
|
||||
import javax.persistence.PersistenceUnit;
|
||||
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.beans.factory.FactoryBean;
|
||||
@@ -337,7 +336,6 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
public void testPersistenceUnitsFromJndi() {
|
||||
EntityManager mockEm = mock(EntityManager.class);
|
||||
given(mockEmf.createEntityManager()).willReturn(mockEm);
|
||||
|
||||
Reference in New Issue
Block a user