1234567891011121314151617181920212223242526 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class MainTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class MainTest
- {
- @Test
- public void testMain(){
- Main main = new Main();
- int input = 3;
- int expected = 6;
- int actual = main.numberAdding(input);
-
- assertEquals(expected, actual);
- }
- }
|