• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ekryd / echo-maven-plugin / 3648

14 Nov 2024 01:38PM CUT coverage: 96.795%. Remained the same
3648

push

circleci

web-flow
Update dependency org.codehaus.mojo:versions-maven-plugin to v2.18.0

302 of 312 relevant lines covered (96.79%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/maven-plugin/src/main/java/echo/output/MavenEchoOutput.java
1
package echo.output;
2

3
import org.apache.maven.plugin.MojoFailureException;
4
import org.apache.maven.plugin.logging.Log;
5

6
/** Wraps the Maven standard output to decouple from output functionality */
7
public class MavenEchoOutput implements EchoOutput {
8
  private final Log wrappedLog;
9

10
  /** Creates an MavenEchoOutput wrapper */
11
  public MavenEchoOutput(Log wrappedLog) {
1✔
12
    this.wrappedLog = wrappedLog;
1✔
13
  }
1✔
14

15
  @Override
16
  public void fail(String content) {
17
    this.throwAsUnchecked(new MojoFailureException(content));
×
18
  }
×
19

20
  @Override
21
  public void error(String content) {
22
    wrappedLog.error(content);
1✔
23
  }
1✔
24

25
  @Override
26
  public void warning(String content) {
27
    wrappedLog.warn(content);
1✔
28
  }
1✔
29

30
  @Override
31
  public void info(String content) {
32
    wrappedLog.info(content);
1✔
33
  }
1✔
34

35
  @Override
36
  public void debug(String content) {
37
    wrappedLog.debug(content);
1✔
38
  }
1✔
39

40
  @SuppressWarnings("unchecked")
41
  private <E extends Throwable> void throwAsUnchecked(Exception e) throws E {
42
    throw (E) e;
1✔
43
  }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc