This repository has been archived by the owner on Aug 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the TestKitRule again. Incorporate it into the existing rule a…
…s suggested in issue #2
- Loading branch information
Showing
7 changed files
with
36 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
package org.zapodot.akka.junit; | ||
|
||
import akka.actor.ActorSystem; | ||
import akka.testkit.JavaTestKit; | ||
import org.junit.rules.TestRule; | ||
|
||
/** | ||
* @author zapodot at gmail dot com | ||
*/ | ||
public interface ActorSystemRule extends TestRule { | ||
|
||
/** | ||
* Assertion that is used to check whether a given message was unhandled | ||
* | ||
* @param letter the message | ||
* @return boolean indicating whether the message was unhandled | ||
*/ | ||
boolean isUnhandled(Object letter); | ||
|
||
/** | ||
* Provides access to the {@link ActorSystem} that was instantiated before the test was run | ||
* | ||
* @return the currently running {@link ActorSystem} | ||
*/ | ||
ActorSystem system(); | ||
|
||
/** | ||
* Convienience method that provides easy access to a {@link JavaTestKit} instance. | ||
* | ||
* @return the {@link JavaTestKit} instance that was created before the test ran | ||
*/ | ||
JavaTestKit testKit(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters