@Test public void testDeserialization() throws Exception { final OneNumberReportDefinitionContent def = (OneNumberReportDefinitionContent) readObjectFromResource("/md/report/oneNumberReportDefinitionContent.json", ReportDefinitionContent.class); assertThat(def, is(notNullValue())); assertThat(def.getFormat(), is("oneNumber")); assertThat(def.getGrid(), is(notNullValue())); }
public String getFormat() { return FORMAT; }
OneNumberReportDefinitionContent extends ReportDefinitionContent { public String getFormat() { return FORMAT; } }
OneNumberReportDefinitionContent extends ReportDefinitionContent { public String getFormat() { return FORMAT; } @JsonCreator private  OneNumberReportDefinitionContent(@JsonProperty("format") String format, @JsonProperty("grid") Grid grid,
                                             @JsonProperty("oneNumber") OneNumberVisualization oneNumber,
                                             @JsonProperty("filters") Collection<Filter> filters);   OneNumberReportDefinitionContent(Grid grid, String description, Collection<Filter> filters); }
OneNumberReportDefinitionContent extends ReportDefinitionContent { public String getFormat() { return FORMAT; } @JsonCreator private  OneNumberReportDefinitionContent(@JsonProperty("format") String format, @JsonProperty("grid") Grid grid,
                                             @JsonProperty("oneNumber") OneNumberVisualization oneNumber,
                                             @JsonProperty("filters") Collection<Filter> filters);   OneNumberReportDefinitionContent(Grid grid, String description, Collection<Filter> filters); String getFormat(); OneNumberVisualization getOneNumber(); static ReportDefinition create(String title, List<GridElement> columns, List<GridElement> rows,
                                          List<MetricElement> metrics); static ReportDefinition create(String title, List<GridElement> columns, List<GridElement> rows,
                                          List<MetricElement> metrics, Collection<Filter> filters); }
OneNumberReportDefinitionContent extends ReportDefinitionContent { public String getFormat() { return FORMAT; } @JsonCreator private  OneNumberReportDefinitionContent(@JsonProperty("format") String format, @JsonProperty("grid") Grid grid,
                                             @JsonProperty("oneNumber") OneNumberVisualization oneNumber,
                                             @JsonProperty("filters") Collection<Filter> filters);   OneNumberReportDefinitionContent(Grid grid, String description, Collection<Filter> filters); String getFormat(); OneNumberVisualization getOneNumber(); static ReportDefinition create(String title, List<GridElement> columns, List<GridElement> rows,
                                          List<MetricElement> metrics); static ReportDefinition create(String title, List<GridElement> columns, List<GridElement> rows,
                                          List<MetricElement> metrics, Collection<Filter> filters); static final String FORMAT; }