@SuppressWarnings("deprecation") @Test public void testDeserialization() throws Exception { final MaqlDdlLinks maqlDdlLinks = readObjectFromResource("/model/maqlDdlLinks.json", MaqlDdlLinks.class); assertThat(maqlDdlLinks, is(notNullValue())); assertThat(maqlDdlLinks.getStatusUri(), is("/gdc/md/PROJECT_ID/tasks/123/status")); }
public String getStatusUri() { for (LinkEntry linkEntry : getEntries()) { if (TASKS_STATUS.equals(linkEntry.getCategory())) { return linkEntry.getUri(); } } return null; }
MaqlDdlLinks extends LinkEntries { public String getStatusUri() { for (LinkEntry linkEntry : getEntries()) { if (TASKS_STATUS.equals(linkEntry.getCategory())) { return linkEntry.getUri(); } } return null; } }
MaqlDdlLinks extends LinkEntries { public String getStatusUri() { for (LinkEntry linkEntry : getEntries()) { if (TASKS_STATUS.equals(linkEntry.getCategory())) { return linkEntry.getUri(); } } return null; } @JsonCreator private  MaqlDdlLinks(@JsonProperty("entries") List<LinkEntry> entries); }
MaqlDdlLinks extends LinkEntries { public String getStatusUri() { for (LinkEntry linkEntry : getEntries()) { if (TASKS_STATUS.equals(linkEntry.getCategory())) { return linkEntry.getUri(); } } return null; } @JsonCreator private  MaqlDdlLinks(@JsonProperty("entries") List<LinkEntry> entries); String getStatusUri(); }
MaqlDdlLinks extends LinkEntries { public String getStatusUri() { for (LinkEntry linkEntry : getEntries()) { if (TASKS_STATUS.equals(linkEntry.getCategory())) { return linkEntry.getUri(); } } return null; } @JsonCreator private  MaqlDdlLinks(@JsonProperty("entries") List<LinkEntry> entries); String getStatusUri();  }