@Override public String toString() { return getHeaderName() + ": " + asHeader(); }
@Override public String toString() { return getHeaderName() + ": " + asHeader(); }
@Test public void testAffordanceAsHeader() { final Affordance affordance = new Affordance("http://localhost/things/{id}", "thing", "http://example.net/relation/other"); assertEquals("<http://localhost/things/{id}>; rel=\"thing http://example.net/relation/other\"", affordance.asHeader()); }