@Test public void to_string() { Context context = mockContext(); replay(); Resource r = new ContextResource(context, "foo/Bar.txt"); assertEquals(r.toString(), "context:foo/Bar.txt"); verify(); }
@Override public String toString() { return String.format("context:%s", getPath()); }
ContextResource extends AbstractResource { @Override public String toString() { return String.format("context:%s", getPath()); } }
ContextResource extends AbstractResource { @Override public String toString() { return String.format("context:%s", getPath()); } ContextResource(Context context, String path); }
ContextResource extends AbstractResource { @Override public String toString() { return String.format("context:%s", getPath()); } ContextResource(Context context, String path); @Override String toString(); URL toURL(); @Override int hashCode(); @Override boolean equals(Object obj); }
ContextResource extends AbstractResource { @Override public String toString() { return String.format("context:%s", getPath()); } ContextResource(Context context, String path); @Override String toString(); URL toURL(); @Override int hashCode(); @Override boolean equals(Object obj);  }