private RpcRegistrar rpcRegistrar;
@Before
- public void setUp() throws Exception {
+ public void setUp() {
MockitoAnnotations.initMocks(this);
system = ActorSystem.create("test");
}
@After
- public void tearDown() throws Exception {
+ public void tearDown() {
TestKit.shutdownActorSystem(system, true);
}
}
@Test
- public void testHandleReceiveAddEndpoint() throws Exception {
+ public void testHandleReceiveAddEndpoint() {
final Map<Address, Optional<RemoteRpcEndpoint>> endpoints = ImmutableMap.of(
endpointAddress, Optional.of(firstEndpoint));
testActorRef.tell(new UpdateRemoteEndpoints(endpoints), ActorRef.noSender());
}
@Test
- public void testHandleReceiveRemoveEndpoint() throws Exception {
+ public void testHandleReceiveRemoveEndpoint() {
final Map<Address, Optional<RemoteRpcEndpoint>> endpoints = ImmutableMap.of(
endpointAddress, Optional.empty());
testActorRef.tell(new UpdateRemoteEndpoints(endpoints), ActorRef.noSender());
}
@Test
- public void testHandleReceiveUpdateEndpoint() throws Exception {
+ public void testHandleReceiveUpdateEndpoint() {
final InOrder inOrder = Mockito.inOrder(service, oldReg, newReg);
testActorRef.tell(new UpdateRemoteEndpoints(ImmutableMap.of(endpointAddress, Optional.of(firstEndpoint))),