⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 allparsertests.java

📁 gcc的组建
💻 JAVA
字号:
/* AllParserTests.java -- The comprehensive HTML parser test.   Copyright (C) 2005 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */  import test.gnu.javax.swing.text.html.HTML_Test;import test.gnu.javax.swing.text.html.parser.AttributeList_test;import test.gnu.javax.swing.text.html.parser.DTD_test;import test.gnu.javax.swing.text.html.parser.Element_Test;import test.gnu.javax.swing.text.html.parser.Entity_Test;import test.gnu.javax.swing.text.html.parser.HTML_parsing;import test.gnu.javax.swing.text.html.parser.HTML_randomTable;import test.gnu.javax.swing.text.html.parser.ParserEntityResolverTest;import test.gnu.javax.swing.text.html.parser.TagElement_Test;import test.gnu.javax.swing.text.html.parser.Text;import test.gnu.javax.swing.text.html.parser.Token_locations;import test.gnu.javax.swing.text.html.parser.parameterDefaulter_Test;import test.gnu.javax.swing.text.html.parser.supplementaryNotifications;import test.gnu.javax.swing.text.html.parser.textPreProcessor_Test;import test.gnu.javax.swing.text.html.parser.low.Buffer_Test;import test.gnu.javax.swing.text.html.parser.low.Constants_Test;import test.gnu.javax.swing.text.html.parser.low.ReaderTokenizer_Test;/** * This is a complete test for javax.swing.text.html.parser package. * Apart javax.* classes, it also tests the implementation specific * gnu.javax.* classes and in this way is more strict than * Mauve tests. To avoid regression it is strongly recommended to run * this test after you modify clases in javax.swing.text.html.parser or * gnu.javax.swing.text.html.parser. * @author Audrius Meskauskas (AudriusA@Bioinformatics.org) */public class AllParserTests{  public static void main(String[] args)  {    try      {        HTML_Test a_HTML_Test = new HTML_Test();        a_HTML_Test.testGetAttributeKey();        a_HTML_Test.testGetIntegerAttributeValue();        a_HTML_Test.testGetTag();        a_HTML_Test.testCaseSensitivity();        a_HTML_Test.testConstructor();        Buffer_Test a_Buffer_Test = new Buffer_Test();        a_Buffer_Test.testDelete();        a_Buffer_Test.testAppend();        Constants_Test a_Constants_Test = new Constants_Test();        a_Constants_Test.testCases();        ReaderTokenizer_Test a_ReaderTokenizer_Test =          new ReaderTokenizer_Test();        a_ReaderTokenizer_Test.testReadingAndAhead();        a_ReaderTokenizer_Test.testComplexToken();        AttributeList_test a_AttributeList_test = new AttributeList_test();        a_AttributeList_test.testSame();        DTD_test a_DTD_test = new DTD_test();        a_DTD_test.testGetElement();        Element_Test a_Element_Test = new Element_Test();        a_Element_Test.testName2type();        a_Element_Test.testAttributeGetter();        Entity_Test a_Entity_Test = new Entity_Test();        a_Entity_Test.testName2type();        a_Entity_Test.testPublicSystemGeneralParameter();        HTML_parsing a_HTML_parsing = new HTML_parsing();        a_HTML_parsing.testHTMLParsing();        HTML_randomTable a_HTML_randomTable = new HTML_randomTable();        a_HTML_randomTable.testTableParsing();        parameterDefaulter_Test a_parameterDefaulter_Test =          new parameterDefaulter_Test();        a_parameterDefaulter_Test.testDefaultValues();        ParserEntityResolverTest a_ParserEntityResolverTest =          new ParserEntityResolverTest();        a_ParserEntityResolverTest.testResolver();        supplementaryNotifications a_supplementaryNotifications =          new supplementaryNotifications();        a_supplementaryNotifications.testHTMLParsing();        TagElement_Test a_TagElement_Test = new TagElement_Test();        a_TagElement_Test.testTagElement();        textPreProcessor_Test a_textPreProcessor_Test =          new textPreProcessor_Test();        a_textPreProcessor_Test.testStandardPreProcessing();        a_textPreProcessor_Test.testPreFormattedPreProcessing();        Text a_Text = new Text();        a_Text.testTextParsing();        Token_locations a_Token_locations = new Token_locations();        a_Token_locations.testHTMLParsing();      }    catch (Exception ex)      {        System.err.println("The tests have FAILED.\nPlease either correct your " +                           "changes\nor, if you are absolutely sure, correct the tests.\n" +                           "See the following exception for details"                          );        ex.printStackTrace(System.err);        System.exit(1);      }    System.out.println("HTML parser tests have passed.");    System.exit(0);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -