Beispiel #1
0
 @Test
 public void testHundredAnswers() throws Exception {
   assertEquals(100, fb.getAnswers(100).length);
 }
Beispiel #2
0
 @Test
 public void testFizzBuzz() throws Exception {
   assertEquals("FizzBuzz !", fb.answer(15));
 }
Beispiel #3
0
 @Test
 public void testNotFizzNorBuzz() throws Exception {
   assertEquals("7 !", fb.answer(7));
 }
Beispiel #4
0
 @Test
 public void testBuzz() throws Exception {
   assertEquals("Buzz !", fb.answer(5));
 }