@Test void testToString() { final ActorTestKit testKit = ActorTestKit.create(); final TestProbe<DssRestChannelHandlerCommand> probe = testKit.createTestProbe(); final DssRestMasterActorCommandRequest request = DssRestMasterActorCommandRequest .builder() .channelId("TEST_CHANNEL_ID") .sender(probe.getRef()) .methodType(DssRestMethodType.GET) .path("/test") .build(); assertFalse(request.toString().isEmpty()); }
@Override public String toString() { return "DssRestMasterActorCommandRequest{" + "channelId: '" + channelId + "', " + "sender: '" + (Objects.nonNull(sender)? sender.path().name() : "null") + "', " + "methodType: '" + methodType + "', " + "contentType: '" + contentType + "', " + "path: '" + path + "', " + "content: '" + content + "'" + "}"; }
DssRestMasterActorCommandRequest implements DssRestMasterActorCommand { @Override public String toString() { return "DssRestMasterActorCommandRequest{" + "channelId: '" + channelId + "', " + "sender: '" + (Objects.nonNull(sender)? sender.path().name() : "null") + "', " + "methodType: '" + methodType + "', " + "contentType: '" + contentType + "', " + "path: '" + path + "', " + "content: '" + content + "'" + "}"; } }
DssRestMasterActorCommandRequest implements DssRestMasterActorCommand { @Override public String toString() { return "DssRestMasterActorCommandRequest{" + "channelId: '" + channelId + "', " + "sender: '" + (Objects.nonNull(sender)? sender.path().name() : "null") + "', " + "methodType: '" + methodType + "', " + "contentType: '" + contentType + "', " + "path: '" + path + "', " + "content: '" + content + "'" + "}"; } @Builder private  DssRestMasterActorCommandRequest(
            String channelId,
            ActorRef<DssRestChannelHandlerCommand> sender,
            DssRestMethodType methodType,
            DssRestContentType contentType,
            String path,
            String content); protected  DssRestMasterActorCommandRequest(DssRestMasterActorCommandRequest request); }
DssRestMasterActorCommandRequest implements DssRestMasterActorCommand { @Override public String toString() { return "DssRestMasterActorCommandRequest{" + "channelId: '" + channelId + "', " + "sender: '" + (Objects.nonNull(sender)? sender.path().name() : "null") + "', " + "methodType: '" + methodType + "', " + "contentType: '" + contentType + "', " + "path: '" + path + "', " + "content: '" + content + "'" + "}"; } @Builder private  DssRestMasterActorCommandRequest(
            String channelId,
            ActorRef<DssRestChannelHandlerCommand> sender,
            DssRestMethodType methodType,
            DssRestContentType contentType,
            String path,
            String content); protected  DssRestMasterActorCommandRequest(DssRestMasterActorCommandRequest request); @Override String toString(); }
DssRestMasterActorCommandRequest implements DssRestMasterActorCommand { @Override public String toString() { return "DssRestMasterActorCommandRequest{" + "channelId: '" + channelId + "', " + "sender: '" + (Objects.nonNull(sender)? sender.path().name() : "null") + "', " + "methodType: '" + methodType + "', " + "contentType: '" + contentType + "', " + "path: '" + path + "', " + "content: '" + content + "'" + "}"; } @Builder private  DssRestMasterActorCommandRequest(
            String channelId,
            ActorRef<DssRestChannelHandlerCommand> sender,
            DssRestMethodType methodType,
            DssRestContentType contentType,
            String path,
            String content); protected  DssRestMasterActorCommandRequest(DssRestMasterActorCommandRequest request); @Override String toString();  }