[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/lexerTests AllTests.java,1.7,1.8 LexerTests.jav
Brought to you by:
derrickoswald
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests In directory sc8-pr-cvs1:/tmp/cvs-serv31228/tests/lexerTests Modified Files: AllTests.java LexerTests.java PageIndexTests.java PageTests.java SourceTests.java StreamTests.java Log Message: Change tabs to spaces in all source files. Index: AllTests.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/AllTests.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AllTests.java 24 Aug 2003 21:59:43 -0000 1.7 --- AllTests.java 3 Sep 2003 23:36:21 -0000 1.8 *************** *** 34,45 **** public class AllTests extends TestCase { ! public AllTests (String name) { ! super (name); ! } ! public static TestSuite suite () { ! TestSuite suite = new TestSuite ("Lexer Tests"); suite.addTestSuite (StreamTests.class); suite.addTestSuite (SourceTests.class); --- 34,45 ---- public class AllTests extends TestCase { ! public AllTests (String name) { ! super (name); ! } ! public static TestSuite suite () { ! TestSuite suite = new TestSuite ("Lexer Tests"); suite.addTestSuite (StreamTests.class); suite.addTestSuite (SourceTests.class); *************** *** 48,52 **** suite.addTestSuite (LexerTests.class); return suite; ! } /** --- 48,52 ---- suite.addTestSuite (LexerTests.class); return suite; ! } /** Index: LexerTests.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/LexerTests.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LexerTests.java 24 Aug 2003 21:59:43 -0000 1.3 --- LexerTests.java 3 Sep 2003 23:36:21 -0000 1.4 *************** *** 61,68 **** * Test the Lexer class. */ ! public LexerTests (String name) { ! super (name); ! } /** --- 61,68 ---- * Test the Lexer class. */ ! public LexerTests (String name) { ! super (name); ! } /** *************** *** 314,318 **** StringBuffer buffer; int i; ! String html; long old_total; --- 314,318 ---- StringBuffer buffer; int i; ! String html; long old_total; *************** *** 379,383 **** StringBuffer buffer; int i; ! String html; long old_total; --- 379,383 ---- StringBuffer buffer; int i; ! String html; long old_total; *************** *** 449,453 **** StringBuffer buffer; int i; ! String html; InputStream stream; --- 449,453 ---- StringBuffer buffer; int i; ! String html; InputStream stream; *************** *** 517,521 **** StringBuffer buffer; int i; ! String html; InputStream stream; --- 517,521 ---- StringBuffer buffer; int i; ! String html; InputStream stream; Index: PageIndexTests.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/PageIndexTests.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PageIndexTests.java 24 Aug 2003 21:59:43 -0000 1.4 --- PageIndexTests.java 3 Sep 2003 23:36:21 -0000 1.5 *************** *** 39,46 **** * Test the end-of-line index class. */ ! public PageIndexTests (String name) { ! super (name); ! } public void testAppend1 () --- 39,46 ---- * Test the end-of-line index class. */ ! public PageIndexTests (String name) { ! super (name); ! } public void testAppend1 () Index: PageTests.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/PageTests.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PageTests.java 24 Aug 2003 21:59:43 -0000 1.6 --- PageTests.java 3 Sep 2003 23:36:21 -0000 1.7 *************** *** 52,64 **** * Test the third level page class. */ ! public PageTests (String name) { ! super (name); ! } /** * Test initialization with a null value. */ ! public void testNull () throws ParserException { Page page; --- 52,64 ---- * Test the third level page class. */ ! public PageTests (String name) { ! super (name); ! } /** * Test initialization with a null value. */ ! public void testNull () throws ParserException { Page page; *************** *** 88,92 **** * Test initialization with a real value. */ ! public void testURLConnection () throws ParserException, IOException { String link; --- 88,92 ---- * Test initialization with a real value. */ ! public void testURLConnection () throws ParserException, IOException { String link; *************** *** 102,106 **** * Test initialization with non-existant URL. */ ! public void testBadURLConnection () throws IOException { String link; --- 102,106 ---- * Test initialization with non-existant URL. */ ! public void testBadURLConnection () throws IOException { String link; Index: SourceTests.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/SourceTests.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SourceTests.java 24 Aug 2003 21:59:43 -0000 1.5 --- SourceTests.java 3 Sep 2003 23:36:21 -0000 1.6 *************** *** 58,70 **** * Test the first level stream class. */ ! public SourceTests (String name) { ! super (name); ! } /** * Test initialization with a null value. */ ! public void testNull () throws IOException { Source source; --- 58,70 ---- * Test the first level stream class. */ ! public SourceTests (String name) { ! super (name); ! } /** * Test initialization with a null value. */ ! public void testNull () throws IOException { Source source; *************** *** 77,81 **** * Test initialization with a null charset name. */ ! public void testEmpty () throws IOException { Source source; --- 77,81 ---- * Test initialization with a null charset name. */ ! public void testEmpty () throws IOException { Source source; *************** *** 88,92 **** * Test initialization with an input stream having only one byte. */ ! public void testOneByte () throws IOException { Source source; --- 88,92 ---- * Test initialization with an input stream having only one byte. */ ! public void testOneByte () throws IOException { Source source; *************** *** 100,104 **** * Test close. */ ! public void testClose () throws IOException { Source source; --- 100,104 ---- * Test close. */ ! public void testClose () throws IOException { Source source; *************** *** 121,125 **** * Test reset. */ ! public void testReset () throws IOException { String reference; --- 121,125 ---- * Test reset. */ ! public void testReset () throws IOException { String reference; *************** *** 145,149 **** * Test reset in the middle of reading. */ ! public void testMidReset () throws IOException { String reference; --- 145,149 ---- * Test reset in the middle of reading. */ ! public void testMidReset () throws IOException { String reference; *************** *** 169,173 **** * Test mark/reset in the middle of reading. */ ! public void testMarkReset () throws IOException { String reference; --- 169,173 ---- * Test mark/reset in the middle of reading. */ ! public void testMarkReset () throws IOException { String reference; *************** *** 195,199 **** * Test skip. */ ! public void testSkip () throws IOException { String part1; --- 195,199 ---- * Test skip. */ ! public void testSkip () throws IOException { String part1; *************** *** 223,227 **** * Test multi-byte read. */ ! public void testMultByte () throws IOException { String reference; --- 223,227 ---- * Test multi-byte read. */ ! public void testMultByte () throws IOException { String reference; *************** *** 241,245 **** * Test positioned multi-byte read. */ ! public void testPositionedMultByte () throws IOException { String part1; --- 241,245 ---- * Test positioned multi-byte read. */ ! public void testPositionedMultByte () throws IOException { String part1; *************** *** 273,277 **** * Test ready. */ ! public void testReady () throws IOException { Source source; --- 273,277 ---- * Test ready. */ ! public void testReady () throws IOException { Source source; *************** *** 305,311 **** chars1 = new ArrayList (); chars2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); --- 305,311 ---- chars1 = new ArrayList (); chars2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); *************** *** 329,334 **** } assertTrue ("extra characters", index == chars2.size ()); ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); --- 329,334 ---- } assertTrue ("extra characters", index == chars2.size ()); ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); Index: StreamTests.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/StreamTests.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** StreamTests.java 24 Aug 2003 21:59:43 -0000 1.4 --- StreamTests.java 3 Sep 2003 23:36:21 -0000 1.5 *************** *** 48,60 **** * Test the first level stream class. */ ! public StreamTests (String name) { ! super (name); ! } /** * Test initialization with a null value. */ ! public void testNull () throws IOException { Stream stream; --- 48,60 ---- * Test the first level stream class. */ ! public StreamTests (String name) { ! super (name); ! } /** * Test initialization with a null value. */ ! public void testNull () throws IOException { Stream stream; *************** *** 67,71 **** * Test initialization with an empty input stream. */ ! public void testEmpty () throws IOException { Stream stream; --- 67,71 ---- * Test initialization with an empty input stream. */ ! public void testEmpty () throws IOException { Stream stream; *************** *** 78,82 **** * Test initialization with an input stream having only one byte. */ ! public void testOneByte () throws IOException { Stream stream; --- 78,82 ---- * Test initialization with an input stream having only one byte. */ ! public void testOneByte () throws IOException { Stream stream; *************** *** 106,112 **** bytes1 = new ArrayList (); bytes2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); --- 106,112 ---- bytes1 = new ArrayList (); bytes2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); *************** *** 130,135 **** } assertTrue ("extra bytes", index == bytes2.size ()); ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); --- 130,135 ---- } assertTrue ("extra bytes", index == bytes2.size ()); ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); *************** *** 177,183 **** // pick a big file link = "http://htmlparser.sourceforge.net/javadoc_1_3/index-all.html"; ! try ! { ! url = new URL (link); // estimate the connection speed --- 177,183 ---- // pick a big file link = "http://htmlparser.sourceforge.net/javadoc_1_3/index-all.html"; ! try ! { ! url = new URL (link); // estimate the connection speed *************** *** 263,268 **** assertTrue ("slower (" + time2 + ") vs. (" + time1 + ")", time2 < time1); assertTrue ("average available bytes not greater (" + available2/samples + ") vs. (" + available1/samples + ")", available2 > available1); ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); --- 263,268 ---- assertTrue ("slower (" + time2 + ") vs. (" + time1 + ")", time2 < time1); assertTrue ("average available bytes not greater (" + available2/samples + ") vs. (" + available1/samples + ")", available2 > available1); ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); *************** *** 288,294 **** bytes1 = new ArrayList (); bytes2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); --- 288,294 ---- bytes1 = new ArrayList (); bytes2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); *************** *** 338,343 **** index++; } ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); --- 338,343 ---- index++; } ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); *************** *** 363,369 **** bytes1 = new ArrayList (); bytes2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); --- 363,369 ---- bytes1 = new ArrayList (); bytes2 = new ArrayList (); ! try ! { ! url = new URL (link); connection = url.openConnection (); connection.connect (); *************** *** 414,419 **** index++; } ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); --- 414,419 ---- index++; } ! } ! catch (MalformedURLException murle) { fail ("bad url " + link); *************** *** 424,428 **** * Test close. */ ! public void testClose () throws IOException { Stream stream; --- 424,428 ---- * Test close. */ ! public void testClose () throws IOException { Stream stream; |