@Test public void removeRegistrationTest() throws Exception { final RpcService rpcService = mock(RpcService.class); final DOMRpcImplementationRegistration<?> domRpcImplementationRegistration = mock(DOMRpcImplementationRegistration.class); final BindingRpcAdapterRegistration<?> bindingRpcAdapterRegistration = new BindingRpcAdapterRegistration<>(rpcService, domRpcImplementationRegistration); doNothing().when(domRpcImplementationRegistration).close(); bindingRpcAdapterRegistration.close(); verify(domRpcImplementationRegistration).close(); }
@Override protected void removeRegistration() { reg.close(); }
BindingRpcAdapterRegistration extends AbstractObjectRegistration<T> { @Override protected void removeRegistration() { reg.close(); } }
BindingRpcAdapterRegistration extends AbstractObjectRegistration<T> { @Override protected void removeRegistration() { reg.close(); } BindingRpcAdapterRegistration(T instance, DOMRpcImplementationRegistration<?> reg); }
BindingRpcAdapterRegistration extends AbstractObjectRegistration<T> { @Override protected void removeRegistration() { reg.close(); } BindingRpcAdapterRegistration(T instance, DOMRpcImplementationRegistration<?> reg);  }
BindingRpcAdapterRegistration extends AbstractObjectRegistration<T> { @Override protected void removeRegistration() { reg.close(); } BindingRpcAdapterRegistration(T instance, DOMRpcImplementationRegistration<?> reg);   }