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

Ekryd / sortpom / 3807

15 Oct 2024 05:03PM CUT coverage: 99.841%. Remained the same
3807

push

circleci

web-flow
chore(deps): update dependency org.mockito:mockito-core to v5.14.2

1256 of 1258 relevant lines covered (99.84%)

1.0 hits per line

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

100.0
/maven-plugin/src/main/java/sortpom/logger/MavenLogger.java
1
package sortpom.logger;
2

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

5
/**
6
 * @author bjorn
7
 * @since 2012-12-22
8
 */
9
public class MavenLogger implements SortPomLogger {
10
  private final Log pluginLogger;
11
  private final boolean quiet;
12

13
  public MavenLogger(Log pluginLogger, boolean quiet) {
1✔
14
    this.pluginLogger = pluginLogger;
1✔
15
    this.quiet = quiet;
1✔
16
  }
1✔
17

18
  @Override
19
  public void warn(String content) {
20
    pluginLogger.warn(content);
1✔
21
  }
1✔
22

23
  @Override
24
  public void info(String content) {
25
    if (quiet) {
1✔
26
      pluginLogger.debug(content);
1✔
27
    } else {
28
      pluginLogger.info(content);
1✔
29
    }
30
  }
1✔
31

32
  @Override
33
  public void error(String content) {
34
    pluginLogger.error(content);
1✔
35
  }
1✔
36
}
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