test/jdk/javadoc/doclet/testBreakIterator/TestBreakIterator.java

Print this page

        

@@ -24,12 +24,12 @@
 /*
  * @test
  * @bug 4165985
  * @summary Determine the end of the first sentence using BreakIterator.
  * If the first sentence of "method" is parsed correctly, the test passes.
- * Correct Answer: "The class is empty (i.e. it has no members)."
- * Wrong Answer: "The class is empty (i.e."
+ * Correct Answer: "This is a class (i.e. it is indeed a class)."
+ * Wrong Answer: "This is a class (i.e."
  * @author jamieh
  * @library ../lib
  * @modules jdk.javadoc
  * @build JavadocTester
  * @run main TestBreakIterator

@@ -49,8 +49,26 @@
                 "-breakiterator",
                 "pkg");
         checkExit(Exit.OK);
 
         checkOutput("pkg/BreakIteratorTest.html", true,
-            "The class is empty (i.e. it has no members).");
+            "<div class=\"block\">This is a class (i.e. it is indeed a class).</div>");
+
+        checkOutput("pkg/BreakIteratorTest.html", true,
+                "<div class=\"block\">tests the breakiterator (i.e. how the firstSentence is broken up).</div>");
+
+        checkOutput("pkg/BreakIteratorTest.html", true,
+                "<div class=\"block\">with an inline tag <code>jdk.javadoc.taglet.Taglet</code> does it work.</div>");
+
+        checkOutput("pkg/BreakIteratorTest.html", true,
+                "<div class=\"block\">with a block tag</div>");
+
+        checkOutput("pkg/BreakIteratorTest.html", true,
+                "<div class=\"block\">Return methods to the specified\n" +
+                " <a href=\"../com/sun/javadoc/package-summary.html#included\">access\n" +
+                " modifier option</a>.</div>");
+
+        checkOutput("pkg/BreakIteratorTest.html", true,
+                "<div class=\"block\">A constant indicating that the keyLocation is indeterminate\n" +
+                " or not relevant.</div>");
     }
 }