@Test public void prints_simple_precondition_query() { Precondition precondition = precondition( simpleQuery("FROM a RETURN a"), PreconditionErrorPolicy.CONTINUE ); String contents = String.join("\n", conditionPrinter.print(precondition)); assertThat(contents).isEqualTo( " "FROM a RETURN a" ); }
public Collection<String> print(Precondition precondition) { if (precondition == null) { return new ArrayList<>(); } Collection<String> lines = new ArrayList<>(); lines.add(format(" lines.addAll(print((Condition) precondition)); return lines; }
ConditionPrinter { public Collection<String> print(Precondition precondition) { if (precondition == null) { return new ArrayList<>(); } Collection<String> lines = new ArrayList<>(); lines.add(format(" lines.addAll(print((Condition) precondition)); return lines; } }
ConditionPrinter { public Collection<String> print(Precondition precondition) { if (precondition == null) { return new ArrayList<>(); } Collection<String> lines = new ArrayList<>(); lines.add(format(" lines.addAll(print((Condition) precondition)); return lines; }  }
ConditionPrinter { public Collection<String> print(Precondition precondition) { if (precondition == null) { return new ArrayList<>(); } Collection<String> lines = new ArrayList<>(); lines.add(format(" lines.addAll(print((Condition) precondition)); return lines; }  Collection<String> print(Precondition precondition); Collection<String> print(Condition precondition); }
ConditionPrinter { public Collection<String> print(Precondition precondition) { if (precondition == null) { return new ArrayList<>(); } Collection<String> lines = new ArrayList<>(); lines.add(format(" lines.addAll(print((Condition) precondition)); return lines; }  Collection<String> print(Precondition precondition); Collection<String> print(Condition precondition);  }