@Test void canConstruct() { final String id = UUID.randomUUID().toString(); final String name = UUID.randomUUID().toString(); final String user = UUID.randomUUID().toString(); final BaseSearchResult searchResult = new BaseSearchResult(id, name, user); Assertions.assertThat(searchResult.getId()).isEqualTo(id); Assertions.assertThat(searchResult.getName()).isEqualTo(name); Assertions.assertThat(searchResult.getUser()).isEqualTo(user); }
@Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } }
BaseSearchResult implements Serializable { @Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } } }
BaseSearchResult implements Serializable { @Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } } @JsonCreator  BaseSearchResult(
        @NotBlank @JsonProperty(value = "id", required = true) final String id,
        @NotBlank @JsonProperty(value = "name", required = true) final String name,
        @NotBlank @JsonProperty(value = "user", required = true) final String user
    ); }
BaseSearchResult implements Serializable { @Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } } @JsonCreator  BaseSearchResult(
        @NotBlank @JsonProperty(value = "id", required = true) final String id,
        @NotBlank @JsonProperty(value = "name", required = true) final String name,
        @NotBlank @JsonProperty(value = "user", required = true) final String user
    ); @Override String toString(); }
BaseSearchResult implements Serializable { @Override public String toString() { try { return GenieObjectMapper.getMapper().writeValueAsString(this); } catch (final JsonProcessingException ioe) { return ioe.getLocalizedMessage(); } } @JsonCreator  BaseSearchResult(
        @NotBlank @JsonProperty(value = "id", required = true) final String id,
        @NotBlank @JsonProperty(value = "name", required = true) final String name,
        @NotBlank @JsonProperty(value = "user", required = true) final String user
    ); @Override String toString();  }