Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
release 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Adven27 committed Jul 24, 2021
1 parent 7a72ee1 commit 6c8bbac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.adven27.env.container

import io.github.adven27.env.core.ExternalSystemConfig
import io.github.adven27.env.core.GenericExternalSystem
import org.testcontainers.containers.GenericContainer
import org.testcontainers.utility.DockerImageName
Expand All @@ -9,13 +10,13 @@ import java.util.function.BiFunction
* System implementation based on docker container
*/
@Suppress("unused")
open class ContainerExternalSystem<T : GenericContainer<*>, C : Any> @JvmOverloads constructor(
open class ContainerExternalSystem<T : GenericContainer<*>, C : ExternalSystemConfig> @JvmOverloads constructor(
system: T,
start: BiFunction<Boolean, T, Any>,
start: BiFunction<Boolean, T, ExternalSystemConfig>,
afterStart: T.() -> Unit = { }
) : GenericExternalSystem<T, Any>(
) : GenericExternalSystem<T, ExternalSystemConfig>(
system,
Any(),
ExternalSystemConfig(),
start = start,
stop = { it.stop() },
running = { it.isRunning },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public ExternalSystemConfig config() {
@NotNull
@Override
public String describe() {
return ExternalSystem.super.describe();
return toString();
}

public static class Config extends ExternalSystemConfig {
Expand Down

0 comments on commit 6c8bbac

Please sign in to comment.