litesoft
Diff Revisions
947
vs
948
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/objects/support/ToLinesObjectsParseStreamTest.java
|
@@ -1,36 +1,31 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
2 |
|
package org.litesoft.aokeyhole.objects.support; |
3 |
3 |
|
|
4 |
|
- |
import junit.framework.*; |
5 |
|
- |
import junit.textui.*; |
6 |
|
- |
|
7 |
4 |
|
import org.litesoft.*; |
8 |
5 |
|
import org.litesoft.commonfoundation.typeutils.*; |
9 |
6 |
|
|
10 |
|
- |
public class ToLinesObjectsParseStreamTest extends TestCasePlus |
11 |
|
- |
{ |
|
7 |
+ |
import junit.framework.*; |
|
8 |
+ |
import junit.textui.*; |
|
9 |
+ |
|
|
10 |
+ |
public class ToLinesObjectsParseStreamTest extends TestCasePlus { |
12 |
11 |
|
private static Class<ToLinesObjectsParseStreamTest> THIS = ToLinesObjectsParseStreamTest.class; |
13 |
12 |
|
|
14 |
|
- |
public ToLinesObjectsParseStreamTest( String name ) |
15 |
|
- |
{ |
|
13 |
+ |
public ToLinesObjectsParseStreamTest( String name ) { |
16 |
14 |
|
super( name ); |
17 |
15 |
|
} |
18 |
16 |
|
|
19 |
17 |
|
public static void main( String[] args ) |
20 |
|
- |
throws Exception |
21 |
|
- |
{ |
|
18 |
+ |
throws Exception { |
22 |
19 |
|
TestRunner.run( suite() ); |
23 |
20 |
|
System.exit( 0 ); |
24 |
21 |
|
} |
25 |
22 |
|
|
26 |
|
- |
public static TestSuite suite() |
27 |
|
- |
{ |
|
23 |
+ |
public static TestSuite suite() { |
28 |
24 |
|
return new TestSuite( THIS ); |
29 |
25 |
|
} |
30 |
26 |
|
|
31 |
27 |
|
public void test_toLinesParser() |
32 |
|
- |
throws Exception |
33 |
|
- |
{ |
|
28 |
+ |
throws Exception { |
34 |
29 |
|
ToLinesObjectsParseStream ops = new ToLinesObjectsParseStream( (String[]) null ); |
35 |
30 |
|
assertFalse( "null", ops.readLine() ); |
36 |
31 |
|
|
|
@@ -62,8 +57,7 @@ |
62 |
57 |
|
assertFalse( "eof", ops.readLine() ); |
63 |
58 |
|
} |
64 |
59 |
|
|
65 |
|
- |
private void validateLine( ToLinesObjectsParseStream pOPS, int pDepth, String pTag, char pSeperator, boolean pNextDeeper, String... pData ) |
66 |
|
- |
{ |
|
60 |
+ |
private void validateLine( ToLinesObjectsParseStream pOPS, int pDepth, String pTag, char pSeperator, boolean pNextDeeper, String... pData ) { |
67 |
61 |
|
assertTrue( "a" + pTag, pOPS.readLine() ); |
68 |
62 |
|
|
69 |
63 |
|
assertEquals( "Depth: " + pTag, pDepth, pOPS.getDepth() ); |