litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Server/src/org/litesoft/GWT/server/DeCamelizerTest.java
|
@@ -1,30 +1,25 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
2 |
|
package org.litesoft.GWT.server; |
3 |
3 |
|
|
4 |
|
- |
import junit.framework.*; |
5 |
|
- |
|
6 |
4 |
|
import org.litesoft.commonfoundation.base.*; |
7 |
5 |
|
|
8 |
|
- |
public class DeCamelizerTest extends TestCase |
9 |
|
- |
{ |
10 |
|
- |
public static TestSuite suite() |
11 |
|
- |
{ |
|
6 |
+ |
import junit.framework.*; |
|
7 |
+ |
|
|
8 |
+ |
public class DeCamelizerTest extends TestCase { |
|
9 |
+ |
public static TestSuite suite() { |
12 |
10 |
|
return new TestSuite( DeCamelizerTest.class ); |
13 |
11 |
|
} |
14 |
12 |
|
|
15 |
|
- |
public DeCamelizerTest( String name ) |
16 |
|
- |
{ |
|
13 |
+ |
public DeCamelizerTest( String name ) { |
17 |
14 |
|
super( name ); |
18 |
15 |
|
} |
19 |
16 |
|
|
20 |
|
- |
public static void main( String[] args ) |
21 |
|
- |
{ |
|
17 |
+ |
public static void main( String[] args ) { |
22 |
18 |
|
junit.textui.TestRunner.run( suite() ); |
23 |
19 |
|
} |
24 |
20 |
|
|
25 |
21 |
|
public void testDeCamel() |
26 |
|
- |
throws Exception |
27 |
|
- |
{ |
|
22 |
+ |
throws Exception { |
28 |
23 |
|
assertEquals( "Yo", DeCamelizer.resolve( " yo " ) ); |
29 |
24 |
|
assertEquals( "Yo Dude", DeCamelizer.resolve( " yo dude " ) ); |
30 |
25 |
|
assertEquals( "Yo Dude", DeCamelizer.resolve( " yoDude " ) ); |