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