Skip to content

Instantly share code, notes, and snippets.

@brianhsu
Created April 8, 2018 03:54
Show Gist options
  • Save brianhsu/12ce39c5025202292c006d4135713c33 to your computer and use it in GitHub Desktop.
Save brianhsu/12ce39c5025202292c006d4135713c33 to your computer and use it in GitHub Desktop.
val useCase = new BaseUseCase[Int] {
def execute() = 100
}
val result = executor.execute(useCase) { r => r }
result shouldBe Success(100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment