@Test public void testToStringFormat() throws Exception { final WarehouseUser user = readObjectFromResource("/warehouse/user.json", WarehouseUser.class); assertThat(user.toString(), matchesPattern(WarehouseUser.class.getSimpleName() + "\\[.*\\]")); }
@Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); }
WarehouseUser { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } }
WarehouseUser { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } WarehouseUser(final String role, final String profile, final String login); @JsonCreator  WarehouseUser(@JsonProperty("role") String role, @JsonProperty("profile") String profile,
                         @JsonProperty("login") String login, @JsonProperty("links") Map<String, String> links); }
WarehouseUser { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } WarehouseUser(final String role, final String profile, final String login); @JsonCreator  WarehouseUser(@JsonProperty("role") String role, @JsonProperty("profile") String profile,
                         @JsonProperty("login") String login, @JsonProperty("links") Map<String, String> links); static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role); static WarehouseUser createWithProfile(final Account profile, final WarehouseUserRole role); static WarehouseUser createWithlogin(final String login, final WarehouseUserRole role); String getRole(); String getProfile(); String getLogin(); Map<String, String> getLinks(); @JsonIgnore String getId(); @JsonIgnore String getUri(); @Override String toString(); }
WarehouseUser { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } WarehouseUser(final String role, final String profile, final String login); @JsonCreator  WarehouseUser(@JsonProperty("role") String role, @JsonProperty("profile") String profile,
                         @JsonProperty("login") String login, @JsonProperty("links") Map<String, String> links); static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role); static WarehouseUser createWithProfile(final Account profile, final WarehouseUserRole role); static WarehouseUser createWithlogin(final String login, final WarehouseUserRole role); String getRole(); String getProfile(); String getLogin(); Map<String, String> getLinks(); @JsonIgnore String getId(); @JsonIgnore String getUri(); @Override String toString(); static final String URI; }