diff --git a/src/test/java/org/springframework/data/jpa/repository/EclipseLinkNamespaceUserRepositoryTests.java b/src/test/java/org/springframework/data/jpa/repository/EclipseLinkNamespaceUserRepositoryTests.java index edc7774f0..0aae43311 100644 --- a/src/test/java/org/springframework/data/jpa/repository/EclipseLinkNamespaceUserRepositoryTests.java +++ b/src/test/java/org/springframework/data/jpa/repository/EclipseLinkNamespaceUserRepositoryTests.java @@ -20,6 +20,9 @@ import static org.hamcrest.Matchers.*; import javax.persistence.Query; +import org.eclipse.persistence.Version; +import org.junit.Assume; +import org.junit.Ignore; import org.junit.Test; import org.springframework.data.jpa.repository.sample.UserRepository; import org.springframework.test.context.ContextConfiguration; @@ -112,4 +115,62 @@ public class EclipseLinkNamespaceUserRepositoryTests extends NamespaceUserReposi @Override @Test public void bindsNativeQueryResultsToProjectionByName() {} + + /** + * Ignores the test for EclipseLink 2.7.2. Reconsider once https://bugs.eclipse.org/bugs/show_bug.cgi?id=533240 is + * fixed. + */ + @Override + @Test // DATAJPA-1314 + public void findByEmptyArrayOfIntegers() throws Exception { + + assumeNotEclipseLink2_7_2(); + + super.findByEmptyArrayOfIntegers(); + } + + /** + * Ignores the test for EclipseLink 2.7.2. Reconsider once https://bugs.eclipse.org/bugs/show_bug.cgi?id=533240 is + * fixed. + */ + @Override + @Test // DATAJPA-1314 + public void findByAgeWithEmptyArrayOfIntegersOrFirstName() { + + assumeNotEclipseLink2_7_2(); + + super.findByAgeWithEmptyArrayOfIntegersOrFirstName(); + } + + /** + * Ignores the test for EclipseLink 2.7.2. Reconsider once https://bugs.eclipse.org/bugs/show_bug.cgi?id=533240 is + * fixed. + */ + @Override + @Test // DATAJPA-1314 + public void findByEmptyCollectionOfIntegers() throws Exception { + + assumeNotEclipseLink2_7_2(); + + super.findByEmptyCollectionOfIntegers(); + } + + /** + * Ignores the test for EclipseLink 2.7.2. Reconsider once https://bugs.eclipse.org/bugs/show_bug.cgi?id=533240 is + * fixed. + */ + @Override + @Test // DATAJPA-1314 + public void findByEmptyCollectionOfStrings() throws Exception { + + assumeNotEclipseLink2_7_2(); + + super.findByEmptyCollectionOfStrings(); + } + + private void assumeNotEclipseLink2_7_2() { + + Assume.assumeFalse("Empty collections seem to be broken in EclipseLink 2.7.2", + Version.getVersion().equals("2.7.2")); + } }