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:
committed by
Oliver Gierke
parent
08ee63bb9d
commit
d2124f733b
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user