123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class calculatorTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class calculatorTest
- {
- /**
- * Default constructor for test class calculatorTest
- */
- public calculatorTest()
- {
- }
-
- /**
- * Sets up the test fixture.
- *
- * Called before every test case method.
- */
- @Before
- public void setUp()
- {
- }
-
- /**
- * Tears down the test fixture.
- *
- * Called after every test case method.
- */
- @After
- public void tearDown()
- {
- }
-
- @Test
- public void TestAdd()
- {
- //calculator calculat1 = new calculator();
- //assertEquals(10, calculat1.add(5, 5));
- }
- }
-
|