1234567891011121314151617181920212223242526272829 |
-
- import org.junit.Assert;
- import org.junit.Before;
- import org.junit.Test;
-
- public class ShortCalculatorTest {
-
- private ShortCalculator ShortCalc;
- @Before
- public void setUp(){
- ShortCalc = new ShortCalculator();
- }
-
- @Test
- public void shortValuesTest(){
- // :Given
- Short[] expected = {6, 2, 8, 2, 0};
- short testnum = 4;
- short testnum2 = 2;
-
- // :When
- Short[] actual = ShortCalc.shortValues(testnum, testnum2);
-
- // :Then
- Assert.assertEquals(expected, actual);
- }
-
- }
|