@Test void testToString() { final ActorTestKit testKit = ActorTestKit.create(); final TestProbe<DssAuthCommand> probe = testKit.createTestProbe(); final DssAuthorizationCommandRequest request = DssAuthorizationCommandRequest .builder() .token("testToken") .valid(probe.ref()) .build(); assertFalse(request.toString().isEmpty()); }
@Override public String toString() { return "DssAuthorizationCommandRequest{" + "token: '" + token + "', " + "valid: '" + (Objects.nonNull(valid)? valid.path().name() : "null") + "'" + "}"; }
DssAuthorizationCommandRequest implements DssAuthCommand { @Override public String toString() { return "DssAuthorizationCommandRequest{" + "token: '" + token + "', " + "valid: '" + (Objects.nonNull(valid)? valid.path().name() : "null") + "'" + "}"; } }
DssAuthorizationCommandRequest implements DssAuthCommand { @Override public String toString() { return "DssAuthorizationCommandRequest{" + "token: '" + token + "', " + "valid: '" + (Objects.nonNull(valid)? valid.path().name() : "null") + "'" + "}"; } @Builder private  DssAuthorizationCommandRequest(String token, ActorRef<DssAuthCommand> valid); protected  DssAuthorizationCommandRequest(DssAuthorizationCommandRequest request); }
DssAuthorizationCommandRequest implements DssAuthCommand { @Override public String toString() { return "DssAuthorizationCommandRequest{" + "token: '" + token + "', " + "valid: '" + (Objects.nonNull(valid)? valid.path().name() : "null") + "'" + "}"; } @Builder private  DssAuthorizationCommandRequest(String token, ActorRef<DssAuthCommand> valid); protected  DssAuthorizationCommandRequest(DssAuthorizationCommandRequest request); @Override String toString(); }
DssAuthorizationCommandRequest implements DssAuthCommand { @Override public String toString() { return "DssAuthorizationCommandRequest{" + "token: '" + token + "', " + "valid: '" + (Objects.nonNull(valid)? valid.path().name() : "null") + "'" + "}"; } @Builder private  DssAuthorizationCommandRequest(String token, ActorRef<DssAuthCommand> valid); protected  DssAuthorizationCommandRequest(DssAuthorizationCommandRequest request); @Override String toString();  }