@Test public void docsWithRelativeLinkShouldUseRelationTypeBaseUriAsPrefix() { final Documentation documentation = docsGenerator() .documentationFrom( create("http://example.org/rel/foo"), ControllerWithRelativeLink.class); assertEquals(documentation.getLink(), create("http://example.org/foo/bar.html")); }
@Test public void docsWithAbsoluteLinkShouldKeepLink() { final Documentation documentation = docsGenerator() .documentationFrom( create("http://example.org/rel/foo"), ControllerWithAbsoluteLink.class); assertEquals(documentation.getLink(), create("http://example.org/foo/bar.html")); }