Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Migrate from JavaTestKit to javadsl.TestKit
[controller.git]
/
opendaylight
/
md-sal
/
cds-access-client
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
access
/
client
/
ClientActorContextTest.java
diff --git
a/opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ClientActorContextTest.java
b/opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ClientActorContextTest.java
index 3ecc68bdb45b3f30314573893a4a622c3fc2561b..4dcbccbfb859d030b8313c3480c614a7302c4d4d 100644
(file)
--- a/
opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ClientActorContextTest.java
+++ b/
opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ClientActorContextTest.java
@@
-10,8
+10,8
@@
package org.opendaylight.controller.cluster.access.client;
import static org.junit.Assert.assertSame;
import akka.actor.ActorSystem;
import static org.junit.Assert.assertSame;
import akka.actor.ActorSystem;
-import akka.testkit.JavaTestKit;
import akka.testkit.TestProbe;
import akka.testkit.TestProbe;
+import akka.testkit.javadsl.TestKit;
import com.google.common.base.Ticker;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import com.google.common.base.Ticker;
import java.util.concurrent.TimeUnit;
import org.junit.After;
@@
-45,8
+45,8
@@
public class ClientActorContextTest {
MockitoAnnotations.initMocks(this);
system = ActorSystem.apply();
probe = new TestProbe(system);
MockitoAnnotations.initMocks(this);
system = ActorSystem.apply();
probe = new TestProbe(system);
- ctx = new ClientActorContext(probe.ref(),
system.scheduler(), system.dispatcher()
,
-
PERSISTENCE_ID, CLIENT_ID
);
+ ctx = new ClientActorContext(probe.ref(),
PERSISTENCE_ID, system
,
+
CLIENT_ID, AccessClientUtil.newMockClientActorConfig()
);
}
@Test
}
@Test
@@
-76,6
+76,6
@@
public class ClientActorContextTest {
@After
public void tearDown() throws Exception {
@After
public void tearDown() throws Exception {
-
Java
TestKit.shutdownActorSystem(system);
+ TestKit.shutdownActorSystem(system);
}
}
}
}