Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/test/com/sun/javadoc/testBreakIterator/TestBreakIterator.java
48429 views
/*1* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/*24* @test25* @bug 416598526* @summary Determine the end of the first sentence using BreakIterator.27* If the first sentence of "method" is parsed correctly, the test passes.28* Correct Answer: "The class is empty (i.e. it has no members)."29* Wrong Answer: "The class is empty (i.e."30* @author jamieh31* @library ../lib/32* @build JavadocTester33* @build TestBreakIterator34* @run main TestBreakIterator35*/3637public class TestBreakIterator extends JavadocTester {3839private static final String BUG_ID = "4165985";40private static final String[][] TEST = {41{BUG_ID + FS + "pkg" + FS + "BreakIteratorTest.html",42"The class is empty (i.e. it has no members)."}};43private static final String[][] NEGATED_TEST = NO_TEST;44private static final String[] ARGS =45new String[] {46"-d", BUG_ID, "-sourcepath", SRC_DIR,47"-breakiterator", "pkg"};4849/**50* The entry point of the test.51* @param args the array of command line arguments.52*/53public static void main(String[] args) {54TestBreakIterator tester = new TestBreakIterator();55run(tester, ARGS, TEST, NEGATED_TEST);56tester.printSummary();57}5859/**60* {@inheritDoc}61*/62public String getBugId() {63return BUG_ID;64}6566/**67* {@inheritDoc}68*/69public String getBugName() {70return getClass().getName();71}72}737475