ShortCalculatorTest.java 373B

1234567891011121314151617181920
  1. import org.junit.Assert;
  2. import org.junit.Before;
  3. import org.junit.Test;
  4. public class ShortCalculatorTest {
  5. @Test
  6. public void CalculatorTest()
  7. {
  8. short a = 1;
  9. short b = 2;
  10. short expected = 3;
  11. short actual = ShortCalculator.add(a,b);
  12. Assert.assertEquals(expected,actual);
  13. }
  14. }