package gseproject.experiments;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class MathFuncTest {

	private MathFunc math;

    @Before
    public void init() { math = new MathFunc(); }
    @After
    public void tearDown() { math = null; }

    @Test
    public void calls() {
        assertEquals(0, math.getCalls());

        math.factorial(1);
        assertEquals(1, math.getCalls());

        math.factorial(1);
        assertEquals(2, math.getCalls());
    }

    @Test
    public void factorial() {
        assertTrue(math.factorial(0) == 1);
        assertTrue(math.factorial(1) == 1);
        assertTrue(math.factorial(5) == 120);
    }

    @Test(expected = IllegalArgumentException.class)
    public void factorialNegative() {
        math.factorial(-1);
    }

    @Ignore
    @Test
    public void todo() {
        assertTrue(math.plus(1, 1) == 3);
    }

}

@@ -42,19 +42,19 @@
  static 
-org
+lib
 .junit.A
@@ -67,108 +67,26 @@
 *;%0D%0A
-%0D%0A
 import 
-org.junit.After;%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.Ignore;%0D%0Aimport org.junit.Test
+lib.junit.*
 ;%0D%0A%0D

Update MathFuncTest.java