ShortCalculatorTest.java 336B

12345678910111213141516
  1. import org.junit.Assert;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. public class ShortCalculatorTest {
  6. @Test
  7. public void shortSumTest(){
  8. ShortCalculator calc = new ShortCalculator();
  9. short x = calc.shortSum((short)23,(short)45);
  10. Assert.assertEquals("68", x);
  11. }
  12. }