@@ -20,38 +20,42 @@ public AtUnitExample4(String word) {
2020 }
2121 public String getWord () { return word ; }
2222 public String scrambleWord () {
23- List <Character > chars =
24- Arrays .asList (
25- ConvertTo .boxed (word .toCharArray ()));
23+ List <Character > chars = Arrays .asList (
24+ ConvertTo .boxed (word .toCharArray ()));
2625 Collections .shuffle (chars , rand );
2726 StringBuilder result = new StringBuilder ();
2827 for (char ch : chars )
2928 result .append (ch );
3029 return result .toString ();
3130 }
32- @ TestProperty static List <String > input =
31+ @ TestProperty
32+ static List <String > input =
3333 Arrays .asList (theory .split (" " ));
3434 @ TestProperty
35- static Iterator <String > words = input .iterator ();
36- @ TestObjectCreate static AtUnitExample4 create () {
35+ static Iterator <String > words = input .iterator ();
36+ @ TestObjectCreate
37+ static AtUnitExample4 create () {
3738 if (words .hasNext ())
3839 return new AtUnitExample4 (words .next ());
3940 else
4041 return null ;
4142 }
42- @ Test boolean words () {
43+ @ Test
44+ boolean words () {
4345 System .out .println ("'" + getWord () + "'" );
4446 return getWord ().equals ("are" );
4547 }
46- @ Test boolean scramble1 () {
48+ @ Test
49+ boolean scramble1 () {
4750 // Use specific seed to get verifiable results:
4851 rand = new Random (47 );
4952 System .out .println ("'" + getWord () + "'" );
5053 String scrambled = scrambleWord ();
5154 System .out .println (scrambled );
5255 return scrambled .equals ("lAl" );
5356 }
54- @ Test boolean scramble2 () {
57+ @ Test
58+ boolean scramble2 () {
5559 rand = new Random (74 );
5660 System .out .println ("'" + getWord () + "'" );
5761 String scrambled = scrambleWord ();
0 commit comments