Skip to content

Commit 5a9af9d

Browse files
committed
add builtIn rasterizer to read me
Signed-off-by: Stefan Niederhauser <[email protected]>
1 parent 4d806c4 commit 5a9af9d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

graphviz-java/example/ex5p.pdf

-16 Bytes
Binary file not shown.

graphviz-java/src/test/java/guru/nidi/graphviz/engine/RendererTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@ void builtInRasterizer() throws IOException {
8888
final Graphviz g = Graphviz.fromGraph(graph().with(node("a").link("b")));
8989
g.basedir(new File("example")).rasterize(Rasterizer.builtIn("pdf")).toFile(new File("target/builtIn"));
9090
assertTrue(out.exists());
91+
end();
92+
init();
9193
}
9294
}

graphviz-java/src/test/java/guru/nidi/graphviz/model/ReadmeTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ void ex4() throws IOException {
147147
}
148148

149149
@Test
150+
@DisabledIfEnvironmentVariable(named = "CI", matches = ".*")
150151
void ex5() throws IOException {
151152
//## config
152153
Graphviz.useEngine(new GraphvizCmdLineEngine()); // Rasterizer.builtIn() works only with CmdLineEngine
@@ -159,6 +160,8 @@ void ex5() throws IOException {
159160
String json = viz.engine(Engine.NEATO).render(Format.JSON).toString();
160161
BufferedImage image = viz.render(Format.PNG).toImage();
161162
//## end
163+
end();
164+
init();
162165
}
163166

164167
@Test

0 commit comments

Comments
 (0)