コード例 #1
0
 @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"));
 }
コード例 #2
0
 @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"));
 }