12345678910111213141516171819202122232425 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
- import org.junit.Assert;
-
- /**
- * The test class ShortCalculatorTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class ShortCalculatorTest
- {
- @Test
- public void addTest(){
- ShortCalculator shortCalculator = new ShortCalculator();
- short expected = 388;
- short actual = ShortCalculator.add((short)255,(short)133);
- Assert.assertEquals(expected, actual,0.01);
- }
- }
|