import org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier;
import org.opendaylight.controller.cluster.access.concepts.FrontendType;
import org.opendaylight.controller.cluster.access.concepts.MemberName;
-import scala.concurrent.duration.Duration;
import scala.concurrent.duration.FiniteDuration;
public class ClientActorContextTest {
}
@Test
- public void testExecuteInActor() throws Exception {
+ public void testExecuteInActor() {
ctx.executeInActor(command);
probe.expectMsg(command);
}
@Test
- public void testExecuteInActorScheduled() throws Exception {
- final FiniteDuration delay = Duration.apply(1, TimeUnit.SECONDS);
- ctx.executeInActor(command, delay);
+ public void testExecuteInActorScheduled() {
+ ctx.executeInActor(command, FiniteDuration.create(1, TimeUnit.SECONDS));
probe.expectMsg(command);
}
@After
- public void tearDown() throws Exception {
+ public void tearDown() {
TestKit.shutdownActorSystem(system);
}
}