litesoft
Diff Revisions
947
vs
948
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/mains/simple/SimpleSystemTest.java
|
@@ -1,37 +1,32 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
2 |
|
package org.litesoft.aokeyhole.swing.mains.simple; |
3 |
3 |
|
|
4 |
|
- |
import junit.framework.*; |
5 |
|
- |
import junit.textui.*; |
6 |
|
- |
|
7 |
4 |
|
import org.litesoft.*; |
8 |
5 |
|
import org.litesoft.aokeyhole.objects.*; |
9 |
6 |
|
import org.litesoft.aokeyhole.persist.lines.*; |
10 |
7 |
|
|
11 |
|
- |
public class SimpleSystemTest extends TestCasePlus |
12 |
|
- |
{ |
|
8 |
+ |
import junit.framework.*; |
|
9 |
+ |
import junit.textui.*; |
|
10 |
+ |
|
|
11 |
+ |
public class SimpleSystemTest extends TestCasePlus { |
13 |
12 |
|
private static Class<SimpleSystemTest> THIS = SimpleSystemTest.class; |
14 |
13 |
|
|
15 |
|
- |
public SimpleSystemTest( String name ) |
16 |
|
- |
{ |
|
14 |
+ |
public SimpleSystemTest( String name ) { |
17 |
15 |
|
super( name ); |
18 |
16 |
|
} |
19 |
17 |
|
|
20 |
18 |
|
public static void main( String[] args ) |
21 |
|
- |
throws Exception |
22 |
|
- |
{ |
|
19 |
+ |
throws Exception { |
23 |
20 |
|
TestRunner.run( suite() ); |
24 |
21 |
|
System.exit( 0 ); |
25 |
22 |
|
} |
26 |
23 |
|
|
27 |
|
- |
public static TestSuite suite() |
28 |
|
- |
{ |
|
24 |
+ |
public static TestSuite suite() { |
29 |
25 |
|
return new TestSuite( THIS ); |
30 |
26 |
|
} |
31 |
27 |
|
|
32 |
28 |
|
public void test_PersistingSubSystemLines1() |
33 |
|
- |
throws Exception |
34 |
|
- |
{ |
|
29 |
+ |
throws Exception { |
35 |
30 |
|
SystemMetaData system = new SystemMetaData( true, "Test", AbstractSimpleSwingFilesMain.SSF ); |
36 |
31 |
|
ArrayLinesPersister zPersister = new ArrayLinesPersister( "ALP0", false, |
37 |
32 |
|
"vs:Simple|Test", |
|
@@ -66,8 +61,7 @@ |
66 |
61 |
|
} |
67 |
62 |
|
|
68 |
63 |
|
public void test_PersistingSubSystemLines2() |
69 |
|
- |
throws Exception |
70 |
|
- |
{ |
|
64 |
+ |
throws Exception { |
71 |
65 |
|
SystemMetaData system = new SystemMetaData( true, "Test", AbstractSimpleSwingFilesMain.SSF ); |
72 |
66 |
|
|
73 |
67 |
|
String[] zPrimeLines = |
|
@@ -111,8 +105,7 @@ |
111 |
105 |
|
} |
112 |
106 |
|
|
113 |
107 |
|
public void test_PersistingSubSystemLines3() |
114 |
|
- |
throws Exception |
115 |
|
- |
{ |
|
108 |
+ |
throws Exception { |
116 |
109 |
|
SystemMetaData system = new SystemMetaData( true, "Test", AbstractSimpleSwingFilesMain.SSF ); |
117 |
110 |
|
|
118 |
111 |
|
String[] zLines = // |
|
@@ -153,8 +146,7 @@ |
153 |
146 |
|
} |
154 |
147 |
|
|
155 |
148 |
|
public void test_createObjectsFromLinesMultiSubSystem_AllLevels() |
156 |
|
- |
throws Exception |
157 |
|
- |
{ |
|
149 |
+ |
throws Exception { |
158 |
150 |
|
SystemMetaData system = new SystemMetaData( true, "Test", AbstractSimpleSwingFilesMain.SSF ); |
159 |
151 |
|
|
160 |
152 |
|
String[] zBaseLines = // |