Browse Source

Use camelCase in Java tests

Katrina Owen 13 years ago
parent
commit
4906e816e6
1 changed files with 16 additions and 16 deletions
  1. 16
    16
      assignments/java/bob/BobTest.java

+ 16
- 16
assignments/java/bob/BobTest.java View File

6
     private final Bob bob = new Bob();
6
     private final Bob bob = new Bob();
7
 
7
 
8
     @Test
8
     @Test
9
-    public void say_something() {
9
+    public void saySomething() {
10
         assertEquals(
10
         assertEquals(
11
             "Whatever.",
11
             "Whatever.",
12
             bob.hey("Tom-ay-to, tom-aaaah-to.")
12
             bob.hey("Tom-ay-to, tom-aaaah-to.")
22
     }
22
     }
23
 
23
 
24
     @Test
24
     @Test
25
-    public void asking_a_question() {
25
+    public void askingAQuestion() {
26
         assertEquals(
26
         assertEquals(
27
             "Sure.",
27
             "Sure.",
28
             bob.hey("Does this cryogenic chamber make me look fat?")
28
             bob.hey("Does this cryogenic chamber make me look fat?")
30
     }
30
     }
31
 
31
 
32
     @Test
32
     @Test
33
-    public void asking_a_numeric_question() {
33
+    public void askingANumericQuestion() {
34
         assertEquals(
34
         assertEquals(
35
             "Sure.",
35
             "Sure.",
36
             bob.hey("You are, what, like 15?")
36
             bob.hey("You are, what, like 15?")
38
     }
38
     }
39
 
39
 
40
     @Test
40
     @Test
41
-    public void talking_forcefully() {
41
+    public void talkingForcefully() {
42
         assertEquals(
42
         assertEquals(
43
             "Whatever.",
43
             "Whatever.",
44
             bob.hey("Let's go make out behind the gym!")
44
             bob.hey("Let's go make out behind the gym!")
46
     }
46
     }
47
 
47
 
48
     @Test
48
     @Test
49
-    public void using_acronyms_in_regular_speech() {
49
+    public void usingAcronymsInRegularSpeech() {
50
         assertEquals(
50
         assertEquals(
51
             "Whatever.", bob.hey("It's OK if you don't want to go to the DMV.")
51
             "Whatever.", bob.hey("It's OK if you don't want to go to the DMV.")
52
         );
52
         );
53
     }
53
     }
54
 
54
 
55
     @Test
55
     @Test
56
-    public void forceful_questions() {
56
+    public void forcefulQuestions() {
57
         assertEquals(
57
         assertEquals(
58
             "Woah, chill out!", bob.hey("WHAT THE HELL WERE YOU THINKING?")
58
             "Woah, chill out!", bob.hey("WHAT THE HELL WERE YOU THINKING?")
59
         );
59
         );
60
     }
60
     }
61
 
61
 
62
     @Test
62
     @Test
63
-    public void shouting_numbers() {
63
+    public void shoutingNumbers() {
64
         assertEquals(
64
         assertEquals(
65
             "Woah, chill out!", bob.hey("1, 2, 3 GO!")
65
             "Woah, chill out!", bob.hey("1, 2, 3 GO!")
66
         );
66
         );
67
     }
67
     }
68
 
68
 
69
     @Test
69
     @Test
70
-    public void only_numbers() {
70
+    public void onlyNumbers() {
71
         assertEquals(
71
         assertEquals(
72
             "Whatever.", bob.hey("1, 2, 3")
72
             "Whatever.", bob.hey("1, 2, 3")
73
         );
73
         );
74
     }
74
     }
75
 
75
 
76
     @Test
76
     @Test
77
-    public void question_with_only_numbers() {
77
+    public void questionWithOnlyNumbers() {
78
         assertEquals(
78
         assertEquals(
79
             "Sure.", bob.hey("4?")
79
             "Sure.", bob.hey("4?")
80
         );
80
         );
81
     }
81
     }
82
 
82
 
83
     @Test
83
     @Test
84
-    public void shouting_with_special_characters() {
84
+    public void shoutingWithSpecialCharacters() {
85
         assertEquals(
85
         assertEquals(
86
             "Woah, chill out!", bob.hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!")
86
             "Woah, chill out!", bob.hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!")
87
         );
87
         );
88
     }
88
     }
89
 
89
 
90
     @Test
90
     @Test
91
-    public void shouting_with_umlauts() {
91
+    public void shoutingWithUmlauts() {
92
         assertEquals(
92
         assertEquals(
93
             "Woah, chill out!", bob.hey("\u00dcML\u00c4\u00dcTS!")
93
             "Woah, chill out!", bob.hey("\u00dcML\u00c4\u00dcTS!")
94
         );
94
         );
95
     }
95
     }
96
 
96
 
97
     @Test
97
     @Test
98
-    public void calmly_speaking_with_umlauts() {
98
+    public void calmlySpeakingWithUmlauts() {
99
         assertEquals(
99
         assertEquals(
100
             "Whatever.", bob.hey("\u00dcML\u00e4\u00dcTS!")
100
             "Whatever.", bob.hey("\u00dcML\u00e4\u00dcTS!")
101
         );
101
         );
102
     }
102
     }
103
 
103
 
104
     @Test
104
     @Test
105
-    public void shouting_with_no_exclamation_mark() {
105
+    public void shoutingWithNoExclamationMark() {
106
         assertEquals(
106
         assertEquals(
107
             "Woah, chill out!", bob.hey("I HATE YOU")
107
             "Woah, chill out!", bob.hey("I HATE YOU")
108
         );
108
         );
109
     }
109
     }
110
 
110
 
111
     @Test
111
     @Test
112
-    public void statement_containing_question_mark() {
112
+    public void statementContainingQuestionMark() {
113
         assertEquals(
113
         assertEquals(
114
             "Whatever.", bob.hey("Ending with ? means a question.")
114
             "Whatever.", bob.hey("Ending with ? means a question.")
115
         );
115
         );
116
     }
116
     }
117
 
117
 
118
     @Test
118
     @Test
119
-    public void prattling_on() {
119
+    public void prattlingOn() {
120
         assertEquals(
120
         assertEquals(
121
             "Sure.", bob.hey("Wait! Hang on. Are you going to be OK?")
121
             "Sure.", bob.hey("Wait! Hang on. Are you going to be OK?")
122
         );
122
         );
130
     }
130
     }
131
 
131
 
132
     @Test
132
     @Test
133
-    public void prolonged_silence() {
133
+    public void prolongedSilence() {
134
         assertEquals(
134
         assertEquals(
135
             "Fine. Be that way!", bob.hey("    ")
135
             "Fine. Be that way!", bob.hey("    ")
136
         );
136
         );