@Test public void testCreateSingleConstantToString() { modelBuilder.add(new IntegerConstant(1).toNamedConstant("i")); String output = modelWriter.toString(); Assert.assertEquals("int: i = 1;", output); }
@Override public String toString() { return allElements().map(Element::declare) .collect(Collectors.joining(System.lineSeparator())); }
ModelWriter implements IModelWriter { @Override public String toString() { return allElements().map(Element::declare) .collect(Collectors.joining(System.lineSeparator())); } }
ModelWriter implements IModelWriter { @Override public String toString() { return allElements().map(Element::declare) .collect(Collectors.joining(System.lineSeparator())); } ModelWriter(IModelBuilder modelBuilder); }
ModelWriter implements IModelWriter { @Override public String toString() { return allElements().map(Element::declare) .collect(Collectors.joining(System.lineSeparator())); } ModelWriter(IModelBuilder modelBuilder); @Override SolvingStrategy getSolvingStrategy(); @Override void setSolvingStrategy(SolvingStrategy solvingStrategy); @Override @Deprecated OutputStatement getOutputStatement(); @Override @Deprecated void setOutputStatement(OutputStatement outputStatement); @Override String toString(); @Override void toFile(File file); @Override void toOutputStream(OutputStream outputStream); @Override File toTempFile(); @Override Collection<Path> getSearchDirectories(); }
ModelWriter implements IModelWriter { @Override public String toString() { return allElements().map(Element::declare) .collect(Collectors.joining(System.lineSeparator())); } ModelWriter(IModelBuilder modelBuilder); @Override SolvingStrategy getSolvingStrategy(); @Override void setSolvingStrategy(SolvingStrategy solvingStrategy); @Override @Deprecated OutputStatement getOutputStatement(); @Override @Deprecated void setOutputStatement(OutputStatement outputStatement); @Override String toString(); @Override void toFile(File file); @Override void toOutputStream(OutputStream outputStream); @Override File toTempFile(); @Override Collection<Path> getSearchDirectories();  }