DATAKV-280 - Enable building with Java 11.
Rely on inherited enforcer plugin configuration. Disable Querydsl tests that cannot be executed with Java9+.
This commit is contained in:
committed by
Greg Turnquist
parent
c0b4dda728
commit
0e92913e8e
@@ -21,6 +21,7 @@ import static org.mockito.Mockito.*;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Before;
|
||||
@@ -70,8 +71,9 @@ public class SpelQueryEngineUnitTests {
|
||||
|
||||
doReturn(people).when(adapter).getAllOf(anyString());
|
||||
|
||||
assertThat(engine.execute(createQueryForMethodWithArgs("findByFirstname", "bob"), null, -1, -1, anyString()))
|
||||
.containsExactly(BOB_WITH_FIRSTNAME);
|
||||
Collection result = engine.execute(createQueryForMethodWithArgs("findByFirstname", "bob"), null, -1, -1,
|
||||
anyString());
|
||||
assertThat(result).containsExactly(BOB_WITH_FIRSTNAME);
|
||||
}
|
||||
|
||||
@Test // DATAKV-114
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
package org.springframework.data.map;
|
||||
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
import static org.assertj.core.api.Assumptions.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.dao.IncorrectResultSizeDataAccessException;
|
||||
@@ -34,6 +36,7 @@ import org.springframework.data.keyvalue.repository.support.QuerydslKeyValueRepo
|
||||
import org.springframework.data.map.QuerydslKeyValueRepositoryUnitTests.QPersonRepository;
|
||||
import org.springframework.data.querydsl.QSort;
|
||||
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
|
||||
import org.springframework.data.util.Version;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
@@ -47,6 +50,11 @@ import com.google.common.collect.Lists;
|
||||
*/
|
||||
public class QuerydslKeyValueRepositoryUnitTests extends AbstractRepositoryUnitTests<QPersonRepository> {
|
||||
|
||||
@Before
|
||||
public void before() {
|
||||
assumeThat(Version.javaVersion().toString()).startsWith("1.8");
|
||||
}
|
||||
|
||||
@Test // DATACMNS-525
|
||||
public void findOneIsExecutedCorrectly() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user