1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class FizzBuzzTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class FizzBuzzTest
- {
-
- FizzBuzz fizzBuzze = new FizzBuzz();
- @Test
- public void testFizzBuzz1(){
- String expected = "1";
- String actual = fizzBuzze.fizzBuzz(1);
-
-
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void testFizzBuzz3(){
- String expected = "Fizz";
- String actual = fizzBuzze.fizzBuzz(3);
-
- assertEquals(expected, actual);
-
- }
-
- @Test
- public void testFizzBuzz5(){
- String expected = "Buzz";
- String actual = fizzBuzze.fizzBuzz(5);
-
- assertEquals(expected, actual);
- }
-
- @Test
- public void testFizzBuzz15(){
- String expected = "FizzBuzz";
- String actual = fizzBuzze.fizzBuzz(15);
-
- assertEquals(expected, actual);
- }
-
- }
|