BasicCalculationsTest.java 792B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import static org.junit.Assert.*;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * The test class BasicCalculationsTest.
  7. *
  8. * @author (your name)
  9. * @version (a version number or a date)
  10. */
  11. public class BasicCalculationsTest
  12. {
  13. /* @Test
  14. public void addTest() {
  15. BasicCalculations basic = new BasicCalculations();
  16. double expected = 15;
  17. double actual = basic.add(5, 10);
  18. assertEquals(expected, actual, 0.01);
  19. }
  20. /**
  21. * Sets up the test fixture.
  22. *
  23. * Called before every test case method.
  24. */
  25. @Before
  26. public void setUp()
  27. {
  28. }
  29. /**
  30. * Tears down the test fixture.
  31. *
  32. * Called after every test case method.
  33. */
  34. @After
  35. public void tearDown()
  36. {
  37. }
  38. }