1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
- import org.junit.Assert;
-
- /**
- * The test class FizzBuzzTest.
- *
- * @Mexi Liang
- * @06/03/2018
- */
- public class FizzBuzzTest
-
- {
- @Test
- public void test3 () {
- FizzBuzz fizz = new FizzBuzz();
- String expected = "Fizz";
- String actual = fizz.run(3);
- Assert.assertEquals(expected,actual);
-
- }
-
- @Test
- public void test5 (){
- FizzBuzz buzz = new FizzBuzz();
- String expected = "Buzz";
- String actual = buzz.divide(5);
- Assert.assertEquals(expected, actual);
- }
-
- @Test
- public void test15(){
- FizzBuzz fb = new FizzBuzz();
- String expected = "FizzBuzz";
- String actual = fb.blabla(15);
- Assert.assertEquals(expected, actual);
- }
-
- @Test
- public void test4(){
- FizzBuzz hia = new FizzBuzz();
-
- }
- }
|