@Test public void blankUrlShouldBeReturnedAsBlank() { MotechURL nullUrl = new MotechURL(null); assertThat(nullUrl.toString(), nullValue()); MotechURL emptyUrl = new MotechURL(" "); assertThat(emptyUrl.toString(), Is.is(EMPTY)); }
@Override public String toString() { return this.url; }
MotechURL { @Override public String toString() { return this.url; } }
MotechURL { @Override public String toString() { return this.url; } MotechURL(String url); }
MotechURL { @Override public String toString() { return this.url; } MotechURL(String url); @Override String toString(); String getHost(); }
MotechURL { @Override public String toString() { return this.url; } MotechURL(String url); @Override String toString(); String getHost(); static final String URL_PATTERN; }