1 | package com.github.dakusui.actionunit.visitors; | |
2 | ||
3 | import com.github.dakusui.actionunit.core.Action; | |
4 | import com.github.dakusui.actionunit.io.Writer; | |
5 | ||
6 | public class ActionPrinter extends ActionScanner { | |
7 | protected final Writer writer; | |
8 | ||
9 | public ActionPrinter(Writer writer) { | |
10 | this.writer = writer; | |
11 | } | |
12 | ||
13 | @Override | |
14 | protected void handleAction(Action action) { | |
15 |
1
1. handleAction : removed call to com/github/dakusui/actionunit/io/Writer::writeLine → SURVIVED |
writer.writeLine(String.format("%s%s", indent(), action)); |
16 | } | |
17 | } | |
Mutations | ||
15 |
1.1 |