Katrina Owen 13 лет назад
Родитель
Сommit
4906e816e6
1 измененных файлов: 16 добавлений и 16 удалений
  1. 16
    16
      assignments/java/bob/BobTest.java

+ 16
- 16
assignments/java/bob/BobTest.java Просмотреть файл

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