Skip to content
Snippets Groups Projects
Verified Commit fd291421 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improve support for JDK6

parent 7d5f4177
Branches
Tags 1.2.0
No related merge requests found
Pipeline #792 passed
......@@ -3,7 +3,7 @@ junit5Version=5.6.0
testContainersVersion=1.15.1
GROUP=de.justjanne
VERSION_NAME=1.1.0
VERSION_NAME=1.2.0
POM_ARTIFACT_ID=testcontainers-ci
POM_NAME=testcontainers-ci
POM_DESCRIPTION=Wrapper for Testcontainers in Gitlab CI to use provided containers
......
......@@ -23,7 +23,7 @@ class CiContainersExtension : BeforeEachCallback, AfterEachCallback {
context?.requiredTestInstances?.allInstances?.forEach { instance ->
instance.javaClass.declaredFields.map { field ->
if (field.type == ProvidedContainer::class.java) {
field.trySetAccessible()
field.isAccessible = true
containers.add(field.get(instance) as ProvidedContainer)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment