Add trivial parameterization to silence eclipse.
Change-Id: I92642b35426f9582ff4578835c0c34146ced207a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
public class BindingDOMMountPointListenerAdapterTest {
- private BindingDOMMountPointListenerAdapter bindingDOMMountPointListenerAdapter;
+ private BindingDOMMountPointListenerAdapter<?> bindingDOMMountPointListenerAdapter;
private BindingToNormalizedNodeCodec codec;
@Mock private MountPointListener listener;
@Mock private DOMMountPointService mountPointService;
- @Mock private ListenerRegistration listenerRegistration;
+ @Mock private ListenerRegistration<?> listenerRegistration;
@Before
public void setUp() throws Exception {
public class BindingDOMRpcAdapterRegistrationTest {
@Test
- public void removeRegistration() throws Exception {
- final DOMRpcImplementationRegistration registration = mock(DOMRpcImplementationRegistration.class);
- final BindingDOMRpcAdapterRegistration bindingDOMRpcAdapterRegistration =
+ public void removeRegistration() {
+ final DOMRpcImplementationRegistration<?> registration = mock(DOMRpcImplementationRegistration.class);
+ final BindingDOMRpcAdapterRegistration<?> adapterReg =
new BindingDOMRpcAdapterRegistration<>(mock(RpcService.class), registration);
- bindingDOMRpcAdapterRegistration.removeRegistration();
+ adapterReg.close();
verify(registration).close();
}
}
\ No newline at end of file
import org.opendaylight.yangtools.yang.binding.RpcService;
public class BindingRpcAdapterRegistrationTest {
-
@Test
public void removeRegistrationTest() throws Exception {
final RpcService rpcService = mock(RpcService.class);
- final DOMRpcImplementationRegistration domRpcImplementationRegistration =
+ final DOMRpcImplementationRegistration<?> domRpcImplementationRegistration =
mock(DOMRpcImplementationRegistration.class);
- final BindingRpcAdapterRegistration bindingRpcAdapterRegistration =
+ final BindingRpcAdapterRegistration<?> bindingRpcAdapterRegistration =
new BindingRpcAdapterRegistration<>(rpcService, domRpcImplementationRegistration);
doNothing().when(domRpcImplementationRegistration).close();
- bindingRpcAdapterRegistration.removeRegistration();
+ bindingRpcAdapterRegistration.close();
verify(domRpcImplementationRegistration).close();
}
}
\ No newline at end of file