diff options
Diffstat (limited to 'vpp-management/impl/src/test')
-rw-r--r-- | vpp-management/impl/src/test/java/io/fd/hc2vpp/management/rpc/CliInbandServiceTest.java | 2 | ||||
-rw-r--r-- | vpp-management/impl/src/test/java/io/fd/hc2vpp/management/state/VppStateTest.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/rpc/CliInbandServiceTest.java b/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/rpc/CliInbandServiceTest.java index dcf0a0186..2677b979b 100644 --- a/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/rpc/CliInbandServiceTest.java +++ b/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/rpc/CliInbandServiceTest.java @@ -42,7 +42,7 @@ public class CliInbandServiceTest implements FutureProducer { final CliInbandService service = new CliInbandService(api); final CliInbandReply reply = new CliInbandReply(); - reply.reply = replyString.getBytes(); + reply.reply = replyString; when(api.cliInband(any())).thenReturn(future(reply)); final CliInbandInput request = new CliInbandInputBuilder().setCmd("cmd").build(); diff --git a/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/state/VppStateTest.java b/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/state/VppStateTest.java index 7e03d8c31..ba69f1785 100644 --- a/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/state/VppStateTest.java +++ b/vpp-management/impl/src/test/java/io/fd/hc2vpp/management/state/VppStateTest.java @@ -98,10 +98,10 @@ public class VppStateTest implements FutureProducer { private void whenShowVersionThenReturn(final Version version) { final ShowVersionReply reply = new ShowVersionReply(); - reply.buildDate = version.getBuildDate().getBytes(); - reply.program = version.getName().getBytes(); - reply.version = version.getBranch().getBytes(); - reply.buildDirectory = version.getBuildDirectory().getBytes(); + reply.buildDate = version.getBuildDate(); + reply.program = version.getName(); + reply.version = version.getBranch(); + reply.buildDirectory = version.getBuildDirectory(); when(api.showVersion(ArgumentMatchers.any(ShowVersion.class))).thenReturn(future(reply)); // Version Customizer uses ControlPing to obtain PID when(api.send(ArgumentMatchers.any(ControlPing.class))).thenReturn(future(new ControlPingReply())); |