@Test void backwardCompatibility() throws Exception { final UnremoveProjectCommand c = (UnremoveProjectCommand) Jackson.readValue( '{' + " \"type\": \"UNREMOVE_PROJECT\"," + " \"projectName\": \"foo\"" + '}', Command.class); assertThat(c.author()).isEqualTo(Author.SYSTEM); assertThat(c.timestamp()).isNotZero(); assertThat(c.projectName()).isEqualTo("foo"); }
@JsonProperty public String projectName() { return projectName; }
UnremoveProjectCommand extends RootCommand<Void> { @JsonProperty public String projectName() { return projectName; } }
UnremoveProjectCommand extends RootCommand<Void> { @JsonProperty public String projectName() { return projectName; } @JsonCreator  UnremoveProjectCommand(@JsonProperty("timestamp") @Nullable Long timestamp,
                           @JsonProperty("author") @Nullable Author author,
                           @JsonProperty("projectName") String projectName); }
UnremoveProjectCommand extends RootCommand<Void> { @JsonProperty public String projectName() { return projectName; } @JsonCreator  UnremoveProjectCommand(@JsonProperty("timestamp") @Nullable Long timestamp,
                           @JsonProperty("author") @Nullable Author author,
                           @JsonProperty("projectName") String projectName); @JsonProperty String projectName(); @Override boolean equals(Object obj); @Override int hashCode(); }
UnremoveProjectCommand extends RootCommand<Void> { @JsonProperty public String projectName() { return projectName; } @JsonCreator  UnremoveProjectCommand(@JsonProperty("timestamp") @Nullable Long timestamp,
                           @JsonProperty("author") @Nullable Author author,
                           @JsonProperty("projectName") String projectName); @JsonProperty String projectName(); @Override boolean equals(Object obj); @Override int hashCode();  }