|
@@ -1,2 +1,34 @@
|
|
1
|
+import org.junit.Assert;
|
|
2
|
+import org.junit.Test;
|
|
3
|
+
|
1
|
4
|
public class FizzBuzzTest {
|
|
5
|
+ FizzBuzz fizzBuzzer = new FizzBuzz();
|
|
6
|
+
|
|
7
|
+ @Test
|
|
8
|
+ public void TestFizzBuzzThree() {
|
|
9
|
+ String actual = fizzBuzzer.fizzBuzz(3);
|
|
10
|
+ String expected = "Fizz";
|
|
11
|
+ Assert.assertEquals(expected, actual);
|
|
12
|
+ }
|
|
13
|
+
|
|
14
|
+ @Test
|
|
15
|
+ public void TestFizzBuzzFive() {
|
|
16
|
+ String actual = fizzBuzzer.fizzBuzz(5);
|
|
17
|
+ String expected = "Buzz";
|
|
18
|
+ Assert.assertEquals(expected, actual);
|
|
19
|
+ }
|
|
20
|
+
|
|
21
|
+ @Test
|
|
22
|
+ public void TestFizzBuzzFifteen() {
|
|
23
|
+ String actual = fizzBuzzer.fizzBuzz(15);
|
|
24
|
+ String expected = "FizzBuzz";
|
|
25
|
+ Assert.assertEquals(expected, actual);
|
|
26
|
+ }
|
|
27
|
+
|
|
28
|
+ @Test
|
|
29
|
+ public void TestFizzBuzzNineteen() {
|
|
30
|
+ String actual = fizzBuzzer.fizzBuzz(19);
|
|
31
|
+ String expected = "19";
|
|
32
|
+ Assert.assertEquals(expected, actual);
|
|
33
|
+ }
|
2
|
34
|
}
|