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

Ekryd / echo-maven-plugin / 4959

21 Feb 2026 01:49PM UTC coverage: 95.192% (-1.6%) from 96.795%
4959

push

circleci

web-flow
Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.5

297 of 312 relevant lines covered (95.19%)

0.95 hits per line

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

55.56
/src/main/java/echo/util/UrlWrapper.java
1
package echo.util;
2

3
import java.io.IOException;
4
import java.io.InputStream;
5
import java.net.MalformedURLException;
6
import java.net.URL;
7

8
/**
9
 * Wraps the java URL class so that it exposes methods to determine if entered values are urls or
10
 * not.
11
 */
12
class UrlWrapper {
13
  private final String spec;
14

15
  /** Creates a new UrlWrapper with a supplied url */
16
  public UrlWrapper(String spec) {
1✔
17
    this.spec = spec;
1✔
18
  }
1✔
19

20
  /** Returns true if the specified string is a URL */
21
  public boolean isUrl() {
22
    try {
23
      new URL(spec);
×
24
      return true;
×
25
    } catch (MalformedURLException e) {
1✔
26
      return false;
1✔
27
    }
28
  }
29

30
  /** Open an input stream to the location of the url */
31
  public InputStream openStream() throws IOException {
32
    var url = new URL(spec);
×
33
    return url.openStream();
×
34
  }
35
}
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

© 2026 Coveralls, Inc