@Test public void testGetUpdateMaqls() throws Exception { final ModelDiff diff = new ModelDiff(new UpdateScript(true, false, "maql1", "maql2")); assertThat(diff.getUpdateMaql(), hasSize(2)); assertThat(diff.getUpdateMaql(), contains("maql1", "maql2")); }
public List<String> getUpdateMaql() { if (updateScripts.isEmpty()) { return emptyList(); } UpdateScript chosenScript; if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(false, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(true, true)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } return unmodifiableList(updateScripts.get(0).getMaqlChunks()); }
ModelDiff { public List<String> getUpdateMaql() { if (updateScripts.isEmpty()) { return emptyList(); } UpdateScript chosenScript; if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(false, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(true, true)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } return unmodifiableList(updateScripts.get(0).getMaqlChunks()); } }
ModelDiff { public List<String> getUpdateMaql() { if (updateScripts.isEmpty()) { return emptyList(); } UpdateScript chosenScript; if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(false, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(true, true)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } return unmodifiableList(updateScripts.get(0).getMaqlChunks()); } @JsonCreator  ModelDiff(@JsonProperty("updateScripts") List<UpdateScript> updateScripts);   ModelDiff(UpdateScript... updateScripts); }
ModelDiff { public List<String> getUpdateMaql() { if (updateScripts.isEmpty()) { return emptyList(); } UpdateScript chosenScript; if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(false, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(true, true)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } return unmodifiableList(updateScripts.get(0).getMaqlChunks()); } @JsonCreator  ModelDiff(@JsonProperty("updateScripts") List<UpdateScript> updateScripts);   ModelDiff(UpdateScript... updateScripts); List<String> getUpdateMaql(); @Override String toString(); }
ModelDiff { public List<String> getUpdateMaql() { if (updateScripts.isEmpty()) { return emptyList(); } UpdateScript chosenScript; if ((chosenScript = getUpdateScriptByFlags(true, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(false, false)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } if ((chosenScript = getUpdateScriptByFlags(true, true)) != null) { return unmodifiableList(chosenScript.getMaqlChunks()); } return unmodifiableList(updateScripts.get(0).getMaqlChunks()); } @JsonCreator  ModelDiff(@JsonProperty("updateScripts") List<UpdateScript> updateScripts);   ModelDiff(UpdateScript... updateScripts); List<String> getUpdateMaql(); @Override String toString();  }