Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bump versions 9.0.4-SNAPSHOT
[controller.git]
/
opendaylight
/
md-sal
/
sal-clustering-commons
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
common
/
actor
/
MeteredBoundedMailboxTest.java
diff --git
a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/MeteredBoundedMailboxTest.java
b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/MeteredBoundedMailboxTest.java
index a40297438d24362295a7f7ab9b0df304c6652d9c..673b4b1876f0eeb2ec718634793bb0cfba1674bb 100644
(file)
--- a/
opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/MeteredBoundedMailboxTest.java
+++ b/
opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/MeteredBoundedMailboxTest.java
@@
-11,7
+11,7
@@
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.DeadLetter;
import akka.actor.Props;
import akka.actor.ActorSystem;
import akka.actor.DeadLetter;
import akka.actor.Props;
-import akka.actor.UntypedActor;
+import akka.actor.UntypedA
bstractA
ctor;
import akka.testkit.TestKit;
import com.typesafe.config.ConfigFactory;
import java.util.concurrent.TimeUnit;
import akka.testkit.TestKit;
import com.typesafe.config.ConfigFactory;
import java.util.concurrent.TimeUnit;
@@
-28,13
+28,13
@@
public class MeteredBoundedMailboxTest {
private final ReentrantLock lock = new ReentrantLock();
@BeforeClass
private final ReentrantLock lock = new ReentrantLock();
@BeforeClass
- public static void setUp()
throws Exception
{
+ public static void setUp() {
config = new CommonConfig.Builder<>("testsystem").withConfigReader(ConfigFactory::load).build();
actorSystem = ActorSystem.create("testsystem", config.get());
}
@AfterClass
config = new CommonConfig.Builder<>("testsystem").withConfigReader(ConfigFactory::load).build();
actorSystem = ActorSystem.create("testsystem", config.get());
}
@AfterClass
- public static void tearDown()
throws Exception
{
+ public static void tearDown() {
if (actorSystem != null) {
actorSystem.terminate();
actorSystem = null;
if (actorSystem != null) {
actorSystem.terminate();
actorSystem = null;
@@
-42,7
+42,7
@@
public class MeteredBoundedMailboxTest {
}
@Test
}
@Test
- public void shouldSendMsgToDeadLetterWhenQueueIsFull()
throws InterruptedException
{
+ public void shouldSendMsgToDeadLetterWhenQueueIsFull() {
final TestKit mockReceiver = new TestKit(actorSystem);
actorSystem.eventStream().subscribe(mockReceiver.testActor(), DeadLetter.class);
final TestKit mockReceiver = new TestKit(actorSystem);
actorSystem.eventStream().subscribe(mockReceiver.testActor(), DeadLetter.class);
@@
-73,7
+73,7
@@
public class MeteredBoundedMailboxTest {
/**
* For testing.
*/
/**
* For testing.
*/
- public static class PingPongActor extends UntypedActor {
+ public static class PingPongActor extends UntypedA
bstractA
ctor {
ReentrantLock lock;
ReentrantLock lock;
@@
-86,7
+86,7
@@
public class MeteredBoundedMailboxTest {
}
@Override
}
@Override
- public void onReceive(final Object message)
throws Exception
{
+ public void onReceive(final Object message) {
lock.lock();
try {
if ("ping".equals(message)) {
lock.lock();
try {
if ("ping".equals(message)) {