build querydsl with java 17

String implements Constable and ConstantDesc in java 17
This commit is contained in:
Marcelo Romulo Fernandes 2022-08-07 10:09:54 -03:00
parent c068ced1f7
commit 3db796be32
2 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
target: [test]
java: [1.8, 11]
java: [1.8, 11, 17]
include:
- target: test
containers: db2 mysql postgresql mongo sqlserver oracle cubrid firebird

View File

@ -12,8 +12,10 @@ class ReflectionUtilsTest {
@Test
def getImplementedInterfaces {
assertEquals(Set(classOf[java.io.Serializable],classOf[Comparable[_]],classOf[CharSequence]),
ReflectionUtils.getImplementedInterfaces(classOf[String]))
var setToTest = ReflectionUtils.getImplementedInterfaces(classOf[String])
assertTrue(setToTest.contains(classOf[java.io.Serializable]))
assertTrue(setToTest.contains(classOf[Comparable[_]]))
assertTrue(setToTest.contains(classOf[CharSequence]))
}
@Test