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:
Mark Paluch
2019-11-13 12:27:45 +01:00
committed by Greg Turnquist
parent c0b4dda728
commit 0e92913e8e
5 changed files with 54 additions and 42 deletions

View File

@@ -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