41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
20 lines
386 B
Kotlin
20 lines
386 B
Kotlin
public trait LoggerAware {
|
|
public val logger: StringBuilder
|
|
}
|
|
|
|
public abstract class HttpServer(): LoggerAware {
|
|
public fun start() {
|
|
logger.append("OK")
|
|
}
|
|
}
|
|
|
|
public class MyHttpServer(): HttpServer() {
|
|
public override val logger = StringBuilder()
|
|
}
|
|
|
|
fun box(): String {
|
|
val server = MyHttpServer()
|
|
server.start()
|
|
return server.logger.toString()!!
|
|
}
|