@Test public void removesBackendDataWhenBackendsAreRemoved() { backendServicesRegistry.add(application("lapp", origin("landing-01", "localhost", 9090))); backendServicesRegistry.add(application("app", origin("app-01", "localhost", 9090))); DashboardData.Downstream downstream = newDashboardData("styx-prod1-presentation-01", "releaseTag", backendServicesRegistry).downstream(); backendServicesRegistry.removeById(id("app")); assertThat(downstream.backendIds(), containsInAnyOrder("styx-prod1-presentation-01-lapp")); assertThat(downstream.backend("styx-prod1-presentation-01-lapp").name(), is("lapp")); }
@JsonProperty("downstream") public Downstream downstream() { return downstream; }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); @JsonProperty("server") Server server(); @JsonProperty("downstream") Downstream downstream(); @JsonProperty("publishTime") long publishTime(); }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); @JsonProperty("server") Server server(); @JsonProperty("downstream") Downstream downstream(); @JsonProperty("publishTime") long publishTime();  }