Code Clean Up
[bgpcep.git] / rsvp / spi / src / test / java / org / opendaylight / protocol / rsvp / parser / spi / pojo / SimpleRROSubobjectRegistryTest.java
index 4866e1ca70731a701b2624e92acfb6a0053acd62..273965e2ee2d9fb70eb4f039e7d317864ff8f0f2 100644 (file)
@@ -47,13 +47,10 @@ public class SimpleRROSubobjectRegistryTest {
         Mockito.doReturn(new SubobjectContainerBuilder().build()).when(this.rroSubobjectParser).parseSubobject(this.input);
         final ArgumentCaptor<SubobjectContainer> arg = ArgumentCaptor.forClass(SubobjectContainer.class);
         final ArgumentCaptor<ByteBuf> bufArg = ArgumentCaptor.forClass(ByteBuf.class);
-        Mockito.doAnswer(new Answer<Object>() {
-            @Override
-            public Object answer(final InvocationOnMock invocation) throws Throwable {
-                final Object[] args = invocation.getArguments();
-                ((ByteBuf) args[1]).writeBoolean(Boolean.TRUE);
-                return null;
-            }
+        Mockito.doAnswer(invocation -> {
+            final Object[] args = invocation.getArguments();
+            ((ByteBuf) args[1]).writeBoolean(Boolean.TRUE);
+            return null;
         }).when(this.rroSubobjectSerializer).serializeSubobject(arg.capture(), bufArg.capture());
     }