X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fmessaging%2FAbstractMessagingTest.java;h=c4738998f35c60b56cf4ebfe7aa9c28a9788c69f;hp=5ff1f38e838d297488b4f42b88205bd45fd6a220;hb=2d60632f7cf63712e8357a3cf3fc40d83366e5e6;hpb=1c717bbf117d3486196a0fdd73ac650721f9c557 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbstractMessagingTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbstractMessagingTest.java index 5ff1f38e83..c4738998f3 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbstractMessagingTest.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbstractMessagingTest.java @@ -74,13 +74,13 @@ public class AbstractMessagingTest { JavaTestKit.shutdownActorSystem(ACTOR_SYSTEM, Boolean.TRUE); } - void setupMockFiledBackedStream(final FileBackedOutputStream mockFiledBackedStream) throws IOException { - doNothing().when(mockFiledBackedStream).write(any(byte[].class), anyInt(), anyInt()); - doNothing().when(mockFiledBackedStream).write(any(byte[].class)); - doNothing().when(mockFiledBackedStream).write(anyInt()); - doNothing().when(mockFiledBackedStream).close(); - doNothing().when(mockFiledBackedStream).cleanup(); - doNothing().when(mockFiledBackedStream).flush(); - doReturn(mockByteSource).when(mockFiledBackedStream).asByteSource(); + void setupMockFiledBackedStream(final FileBackedOutputStream mockOutputStream) throws IOException { + doNothing().when(mockOutputStream).write(any(byte[].class), anyInt(), anyInt()); + doNothing().when(mockOutputStream).write(any(byte[].class)); + doNothing().when(mockOutputStream).write(anyInt()); + doNothing().when(mockOutputStream).close(); + doNothing().when(mockOutputStream).cleanup(); + doNothing().when(mockOutputStream).flush(); + doReturn(mockByteSource).when(mockOutputStream).asByteSource(); } }