aboutsummaryrefslogtreecommitdiff
path: root/java/src/test/java/org/pablotron/luigi/tests/TestResultHandler.java
blob: d924cffd7fa40d6383aefcee9c97856dd81ac95e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.pablotron.luigi.tests;

import java.io.IOException;

public final class TestResultHandler implements Appendable {
  private final StringBuilder sb;

  public TestResultHandler(final StringBuilder sb) {
    this.sb = sb;
  }

  public Appendable append(final char c) throws IOException {
    sb.append(c);
		return this;
  }

  public Appendable append(final CharSequence s) throws IOException {
    sb.append(s);
		return this;
  }

  public Appendable append(
    final CharSequence s,
    final int start,
    final int end
  ) throws IOException {
    sb.append(s, start, end);
		return this;
  }
};