DATAJPA-1314 - Ignored tests triggering failures in EclipseLink 2.7.

Ignored failing tests related to empty collections if EclipseLink Version 2.7.2 is used.
The failure seems to be related to using an IN-clause with an empty collection as parameter.

See also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=533240
This commit is contained in:
Jens Schauder
2018-04-04 13:38:57 +02:00
committed by Oliver Gierke
parent 8493c12099
commit 11f20dd718

View File

@@ -19,6 +19,8 @@ import static org.assertj.core.api.Assertions.*;
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;
@@ -118,4 +120,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"));
}
}