Advertisement
wkoszycki

Untitled

Jun 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.55 KB | None | 0 0
  1. for (
  2.     (description, replyMessage, errorMessage) <- Seq(
  3.       ("not found", ContextsSupervisor.ContextNotFound(contextName), "Context not found"),
  4.       ("in wrong state", ContextsSupervisor.ContextInWrongState(contextName, ContextStatus.FAILED), "Context in wrong state"),
  5.       ("obtaining failed", akka.actor.Status.Failure(new Exception("obtaining failed")), "obtaining failed")
  6.     );
  7.     (isSynchronous) <- Seq(true, false)
  8.   ) it(s"fail killing job when context $description and mode is ${if (isSynchronous) "synchronous" else "asynchronous"}") {
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement