Skip to content

Instantly share code, notes, and snippets.

@cacoco
Created February 4, 2023 04:16
Show Gist options
  • Save cacoco/0768394ecf9a6e352ba1d3a5ab43a5e6 to your computer and use it in GitHub Desktop.
Save cacoco/0768394ecf9a6e352ba1d3a5ab43a5e6 to your computer and use it in GitHub Desktop.
import com.twitter.inject.server.{EmbeddedTwitterServer, FeatureTest}
class MyTwitterServerFeatureTest extends FeatureTest {
override protected val server =
new EmbeddedTwitterServer(new MyTwitterServer)
override protected def beforeAll(): Unit = {
server.start()
}
test("MyTwitterServer#starts") {
server.isHealthy
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment