@Test public void setVersion() throws Exception { List<ComponentHealth> componentHealths = new ArrayList<>(); ComponentHealthList chList = new ComponentHealthList(componentHealths); assertThat(chList.getComponentHealths(), is(empty())); chList.setVersion("v1.0"); assertThat(chList.getVersion(), is("v1.0")); }
public void setVersion(String version) { this.version = version; }
ComponentHealthList { public void setVersion(String version) { this.version = version; } }
ComponentHealthList { public void setVersion(String version) { this.version = version; } ComponentHealthList(List<ComponentHealth> componentHealths); }
ComponentHealthList { public void setVersion(String version) { this.version = version; } ComponentHealthList(List<ComponentHealth> componentHealths); String getVersion(); void setVersion(String version); List<ComponentHealth> getComponentHealths(); }
ComponentHealthList { public void setVersion(String version) { this.version = version; } ComponentHealthList(List<ComponentHealth> componentHealths); String getVersion(); void setVersion(String version); List<ComponentHealth> getComponentHealths();  }