@Test public void should_serialize_json() throws Exception { String json = objectMapper.writeValueAsString(BuildVersion.valueOf("1.0.0")); DocumentContext doc = JsonPath.parse(json); assertThat(doc.read("$", String.class)).isEqualTo("1.0.0"); }
public static BuildVersion valueOf(String s) { return new BuildVersion(s); }
BuildVersion implements Serializable, Comparable<BuildVersion> { public static BuildVersion valueOf(String s) { return new BuildVersion(s); } }
BuildVersion implements Serializable, Comparable<BuildVersion> { public static BuildVersion valueOf(String s) { return new BuildVersion(s); } private  BuildVersion(String value); }
BuildVersion implements Serializable, Comparable<BuildVersion> { public static BuildVersion valueOf(String s) { return new BuildVersion(s); } private  BuildVersion(String value); static BuildVersion valueOf(String s); @Nullable static BuildVersion from(Map<String, ?> map); @JsonValue String getValue(); @Override String toString(); @Override int compareTo(BuildVersion other); }
BuildVersion implements Serializable, Comparable<BuildVersion> { public static BuildVersion valueOf(String s) { return new BuildVersion(s); } private  BuildVersion(String value); static BuildVersion valueOf(String s); @Nullable static BuildVersion from(Map<String, ?> map); @JsonValue String getValue(); @Override String toString(); @Override int compareTo(BuildVersion other);  }