@Test public void actions_with_multiple_service_types() { ConfigChangeActions actions = new ConfigChangeActionsBuilder(). restart(CHANGE_MSG, CLUSTER, CLUSTER_TYPE, SERVICE_TYPE, SERVICE_NAME). restart(CHANGE_MSG, CLUSTER, CLUSTER_TYPE, SERVICE_TYPE_2, SERVICE_NAME).build(); List<RestartActions.Entry> entries = actions.getRestartActions().getEntries(); assertThat(entries.size(), is(2)); assertThat(toString(entries.get(0)), equalTo("search.foo.distributor:[baz][change]")); assertThat(toString(entries.get(1)), equalTo("search.foo.searchnode:[baz][change]")); }
public List<Entry> getEntries() { return new ArrayList<>(actions.values()); }
RestartActions { public List<Entry> getEntries() { return new ArrayList<>(actions.values()); } }
RestartActions { public List<Entry> getEntries() { return new ArrayList<>(actions.values()); } RestartActions(); private  RestartActions(Map<String, Entry> actions);  RestartActions(List<ConfigChangeAction> actions); }
RestartActions { public List<Entry> getEntries() { return new ArrayList<>(actions.values()); } RestartActions(); private  RestartActions(Map<String, Entry> actions);  RestartActions(List<ConfigChangeAction> actions); RestartActions useForInternalRestart(boolean useForInternalRestart); List<Entry> getEntries(); String format(); boolean isEmpty(); }
RestartActions { public List<Entry> getEntries() { return new ArrayList<>(actions.values()); } RestartActions(); private  RestartActions(Map<String, Entry> actions);  RestartActions(List<ConfigChangeAction> actions); RestartActions useForInternalRestart(boolean useForInternalRestart); List<Entry> getEntries(); String format(); boolean isEmpty();  }