1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import static org.junit.Assert.*;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. import org.junit.Assert;
  6. /**
  7. * The test class FizzBuzzTest.
  8. *
  9. * @Mexi Liang
  10. * @06/03/2018
  11. */
  12. public class FizzBuzzTest
  13. {
  14. @Test
  15. public void test3 () {
  16. FizzBuzz fizz = new FizzBuzz();
  17. String expected = "Fizz";
  18. String actual = fizz.run(3);
  19. Assert.assertEquals(expected,actual);
  20. }
  21. @Test
  22. public void test5 (){
  23. FizzBuzz buzz = new FizzBuzz();
  24. String expected = "Buzz";
  25. String actual = buzz.divide(5);
  26. Assert.assertEquals(expected, actual);
  27. }
  28. @Test
  29. public void test15(){
  30. FizzBuzz fb = new FizzBuzz();
  31. String expected = "FizzBuzz";
  32. String actual = fb.blabla(15);
  33. Assert.assertEquals(expected, actual);
  34. }
  35. @Test
  36. public void test4(){
  37. FizzBuzz hia = new FizzBuzz();
  38. }
  39. }