@Test public void testDeserializeWithParams() throws Exception { final AuditEvent deserializedObject = readObjectFromResource("/auditevents/auditEventWithParam.json", AuditEvent.class); assertThat(deserializedObject.getParams(), hasEntry("KEY", "VALUE")); }
public Map<String, String> getParams() { return params; }
AuditEvent { public Map<String, String> getParams() { return params; } }
AuditEvent { public Map<String, String> getParams() { return params; } @JsonCreator  AuditEvent(@JsonProperty("id") String id,
                      @JsonProperty("userLogin") String userLogin,
                      @JsonProperty("occurred") ZonedDateTime occurred,
                      @JsonProperty("recorded") ZonedDateTime recorded,
                      @JsonProperty("userIp") String userIp,
                      @JsonProperty("success") boolean success,
                      @JsonProperty("type") String type,
                      @JsonProperty("params") Map<String, String> params,
                      @JsonProperty("links") Map<String, String> links); }
AuditEvent { public Map<String, String> getParams() { return params; } @JsonCreator  AuditEvent(@JsonProperty("id") String id,
                      @JsonProperty("userLogin") String userLogin,
                      @JsonProperty("occurred") ZonedDateTime occurred,
                      @JsonProperty("recorded") ZonedDateTime recorded,
                      @JsonProperty("userIp") String userIp,
                      @JsonProperty("success") boolean success,
                      @JsonProperty("type") String type,
                      @JsonProperty("params") Map<String, String> params,
                      @JsonProperty("links") Map<String, String> links); String getId(); String getUserLogin(); ZonedDateTime getOccurred(); ZonedDateTime getRecorded(); String getUserIp(); boolean isSuccess(); String getType(); Map<String, String> getParams(); Map<String, String> getLinks(); @Override String toString(); }
AuditEvent { public Map<String, String> getParams() { return params; } @JsonCreator  AuditEvent(@JsonProperty("id") String id,
                      @JsonProperty("userLogin") String userLogin,
                      @JsonProperty("occurred") ZonedDateTime occurred,
                      @JsonProperty("recorded") ZonedDateTime recorded,
                      @JsonProperty("userIp") String userIp,
                      @JsonProperty("success") boolean success,
                      @JsonProperty("type") String type,
                      @JsonProperty("params") Map<String, String> params,
                      @JsonProperty("links") Map<String, String> links); String getId(); String getUserLogin(); ZonedDateTime getOccurred(); ZonedDateTime getRecorded(); String getUserIp(); boolean isSuccess(); String getType(); Map<String, String> getParams(); Map<String, String> getLinks(); @Override String toString(); static final String GDC_URI; static final String USER_URI; static final String ADMIN_URI; }