1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- public class FizzBuzzTest
- {
- @Test
- public void FizzBuzzTest1(){
- FizzBuzz fb = new FizzBuzz();
-
- String expected = "1";
- String actual = fb.fizzBuzz(1);
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void FizzBuzzTest3(){
- FizzBuzz fb = new FizzBuzz();
-
- String expected = "fizz";
- String actual = fb.fizzBuzz(3);
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void FizzBuzzTest5(){
- FizzBuzz fb = new FizzBuzz();
-
- String expected = "buzz";
- String actual = fb.fizzBuzz(5);
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void FizzBuzzTest15(){
- FizzBuzz fb = new FizzBuzz();
-
- String expected = "fizzbuzz";
- String actual = fb.fizzBuzz(15);
-
- assertEquals(expected, actual);
- }
- }
|