dasniko / testcontainers-keycloak

A Testcontainer implementation for Keycloak IAM & SSO.
Apache License 2.0
341 stars 53 forks source link

Fix docker-compose command #7

Closed oberstrike closed 4 years ago

oberstrike commented 4 years ago

I am trying to set up a keycloak service with docker-compose. For this I need several commands. But in the source code everything under "command" is treated as string. So an exception is raised during casting.

Location:

package org.lorislab.quarkus.testcontainers; line: (86) command = (String) data.get("command");

The problem is that the result is not a string but an ArrayList of strings.

oberstrike commented 4 years ago

Exception:

Caused by: java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.lang.String (java.util.ArrayList and java.lang.String are in module java.base of loader 'bootstrap')
    at org.lorislab.quarkus.testcontainers.ContainerConfig.load(ContainerConfig.java:86)
    ... 76 more