@Test public void addsBackendDataWhenBackendsAreAdded() { DashboardData.Downstream downstream = newDashboardData("styx-prod1-presentation-01", "releaseTag", backendServicesRegistry).downstream(); backendServicesRegistry.add(application("landing", origin("landing-01", "localhost", 9090))); assertThat(downstream.backendIds(), containsInAnyOrder("styx-prod1-presentation-01-app", "styx-prod1-presentation-01-landing")); assertThat(downstream.backend("styx-prod1-presentation-01-app").name(), is("app")); assertThat(downstream.backend("styx-prod1-presentation-01-landing").name(), is("landing")); }
@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();  }