@Test public void testSerialization() { final ProjectEvent projectEvent = new ProjectEvent("etl.test"); projectEvent.setParameter("text", "cool"); assertThat(projectEvent, jsonEquals(resource("notification/projectEvent.json"))); }
public void setParameter(final String key, final String value) { notNull(key, "parameter key"); notNull(value, "parameter value"); parameters.put(key, value); }
ProjectEvent { public void setParameter(final String key, final String value) { notNull(key, "parameter key"); notNull(value, "parameter value"); parameters.put(key, value); } }
ProjectEvent { public void setParameter(final String key, final String value) { notNull(key, "parameter key"); notNull(value, "parameter value"); parameters.put(key, value); } ProjectEvent(final String type);  ProjectEvent(final String type, final Map<String, String> parameters); }
ProjectEvent { public void setParameter(final String key, final String value) { notNull(key, "parameter key"); notNull(value, "parameter value"); parameters.put(key, value); } ProjectEvent(final String type);  ProjectEvent(final String type, final Map<String, String> parameters); void setParameter(final String key, final String value); @JsonProperty("type") String getType(); @JsonProperty("parameters") Map<String, String> getParameters(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
ProjectEvent { public void setParameter(final String key, final String value) { notNull(key, "parameter key"); notNull(value, "parameter value"); parameters.put(key, value); } ProjectEvent(final String type);  ProjectEvent(final String type, final Map<String, String> parameters); void setParameter(final String key, final String value); @JsonProperty("type") String getType(); @JsonProperty("parameters") Map<String, String> getParameters(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final String URI; }