Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created February 6, 2014 22:41
Show Gist options
  • Select an option

  • Save chbatey/8853965 to your computer and use it in GitHub Desktop.

Select an option

Save chbatey/8853965 to your computer and use it in GitHub Desktop.
ScalaTest: Testing futures with future value
test("Test a asynchronous method synchronously - futureResult") {
val underTest = new ClassThatReturnsFutures()
val futureResult = underTest.goDoSomething()
futureResult.futureValue should equal("The result")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment