public class LogAssert extends Object
| Constructor and Description |
|---|
LogAssert(akka.actor.ActorSystem system) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertException(Runnable runnable,
Class<? extends akka.AkkaException> exception,
akka.actor.ActorRef actorRef,
akka.actor.ActorSystem system)
assert logging of exceptional message when a piece of code is executed
|
static void |
assertLogInfo(Runnable runnable,
String message,
akka.actor.ActorRef actorRef,
akka.actor.ActorSystem system)
assert logging of info message when a piece of code is executed
|
void |
thenAssertException(Class<? extends akka.AkkaException> e) |
void |
thenAssertLogInfo(String message) |
void |
whenTell(akka.actor.ActorRef actorRef,
Object message) |
public static void assertLogInfo(Runnable runnable, String message, akka.actor.ActorRef actorRef, akka.actor.ActorSystem system)
runnable - the piece of code to executemessage - the expected message (part)actorRef - the actor who sends the messagesystem - actor systempublic static void assertException(Runnable runnable, Class<? extends akka.AkkaException> exception, akka.actor.ActorRef actorRef, akka.actor.ActorSystem system)
runnable - the piece of code to executeexception - the expected exceptionactorRef - the actor who sends the messagesystem - actor systempublic void whenTell(akka.actor.ActorRef actorRef,
Object message)
public void thenAssertLogInfo(String message)
public void thenAssertException(Class<? extends akka.AkkaException> e)
Copyright © 2017. All rights reserved.