import { StartedTestContainer , StopOptions , StoppedTestContainer } from "../test-container" ; import { Port } from "../port" ; import { ContainerName , Host , Id , Command , ExecResult } from "../docker/types" ; import { Readable } from "stream" ; export class AbstractStartedContainer { constructor ( protected readonly startedTestContainer ) { } public stop ( options ? ) { return this . startedTestContainer . stop ( options ) ; } public getHost ( ) { return this . startedTestContainer . getHost ( ) ; } public getMappedPort ( port ) { return this . startedTestContainer . getMappedPort ( port ) ; } public getName ( ) { return this . startedTestContainer . getName ( ) ; } public getId ( ) { return this . startedTestContainer . getId ( ) ; } public getNetworkNames ( ) { return this . startedTestContainer . getNetworkNames ( ) ; } public getNetworkId ( networkName ) { return this . startedTestContainer . getNetworkId ( networkName ) ; } public getIpAddress ( networkName ) { return this . startedTestContainer . getIpAddress ( networkName ) ; } public exec ( command ) { return this . startedTestContainer . exec ( command ) ; } public logs ( ) { return this . startedTestContainer . logs ( ) ; } }