ActionPrinter.java

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 → KILLED
    writer.writeLine(String.format("%s%s", indent(), action));
16
  }
17
}

Mutations

15

1.1
Location : handleAction
Killed by : com.github.dakusui.actionunit.scenarios.ActionPrinterTest$SimpleTest.givenNew(com.github.dakusui.actionunit.scenarios.ActionPrinterTest$SimpleTest)
removed call to com/github/dakusui/actionunit/io/Writer::writeLine → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.3