コード例 #1
0
 @Before
 public final void init() {
   final Root root = new Root(null, "root");
   person = new Person(root, new ObjectId("I1"));
   root.insert(person);
   userContext = RenderingContext.user();
 }
コード例 #2
0
 @Test
 public final void testGetTrailerHtmlIndex() {
   final Root root = new Root(null);
   final GedRenderer<GedObject> renderer =
       new DefaultRenderer(root, new GedRendererFactory(), RenderingContext.anonymous());
   assertEquals(
       "\n"
           + "    <hr class=\"final\"/>\n"
           + "    <p>\n"
           + "    <a href=\"?"
           + root.getFilename()
           + "+Index\">Index</a><br>\n"
           + "    </p>\n"
           + "    <hr class=\"final\"/>\n"
           + "    <table class=\"buttonrow\">\n"
           + "    <tr class=\"buttonrow\">\n"
           + "    <td class=\"brleft\">\n"
           + "    <p class=\"maintainer\">\n"
           + "    Maintained by <a href=\"mailto:[email protected]\">"
           + "Dick Schoeller</a>.<br>\n"
           + "    Created with <a href=\"http://www.schoellerfamily.org/"
           + "softwarwe/gedbrowser.html\">GEDbrowser</a>, version "
           + GedObject.VERSION
           + " on "
           + getDateString()
           + "\n"
           + "    </p>\n"
           + "    </td>\n"
           + "    <td class=\"brright\">\n"
           + "    <p class=\"maintainer\">\n"
           + "<a href=\"http://validator.w3.org/check/referer\">"
           + "<img src=\"/gedbrowser/valid-html401.gif\" "
           + "class=\"button\" alt=\"[ Valid HTML 4.01! ]\" "
           + "height=\"31\" width=\"88\"></a>\n"
           + "    </p>\n"
           + "    </td>\n"
           + "    </tr>\n"
           + "    </table>\n"
           + "    <p>\n"
           + "  </body>\n"
           + "</html>\n",
       renderer.getTrailerHtml("Index"));
 }