You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm scala beginner.
when I use: ScriptUtils.runInitScript(new JdbcDatabaseDelegate(mysqlContainer.container, ""), "sql/schema-notification.sql")
I encountered a error:
Type mismatch:
Required: JdbcDatabaseContainer[SELF] forSome {type SELF: JdbcDatabaseContainer[SELF] }
Found: MySQLContainer[_]
The text was updated successfully, but these errors were encountered:
I've had to cast container into JdbcDatabaseContainer with wildcard: container.container.asInstanceOf[org.testcontainers.containers.JdbcDatabaseContainer[_]]
Really weird that JdbcDatabaseDelegate constructor take the raw type.
I'm scala beginner.
when I use:
ScriptUtils.runInitScript(new JdbcDatabaseDelegate(mysqlContainer.container, ""), "sql/schema-notification.sql")
I encountered a error:
Type mismatch:
Required: JdbcDatabaseContainer[SELF] forSome {type SELF: JdbcDatabaseContainer[SELF] }
Found: MySQLContainer[_]
The text was updated successfully, but these errors were encountered: