package ru.revdaalex.oodsrp;

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * Created by revdaalex on 09.06.2016.
 */
public class CalculatorTest {
    private static Calculator calculator;

    /**
     *Initialization Calculator object
     */
    @BeforeClass
    public static void runTest(){
        calculator = new Calculator();
    }

    /**
     * Test add method
     * @throws Exception
     */
    @Test
    public void add() throws Exception {
        int test = calculator.add(30, 27);
        Assert.assertEquals(test, 57);
    }

    /**
     * Test sub method
     * @throws Exception
     */
    @Test
    public void sub() throws Exception {
        int test = calculator.sub(200, 50);
        Assert.assertEquals(test, 150);
    }

    /**
     * Test mult method
     * @throws Exception
     */
    @Test
    public void mult() throws Exception {
        int test = calculator.mult(537, 34);
        Assert.assertEquals(test, 18258);
    }

    /**
     * Test div method
     * @throws Exception
     */
    @Test
    public void div() throws Exception {
        int test = calculator.div(2000, 50);
        Assert.assertEquals(test, 40);
    }

}
@@ -268,17 +268,18 @@
 r object
+.
 %0A
-
      */%0A
@@ -401,24 +401,25 @@
 t add method
+.
 %0A     * @thr
@@ -606,24 +606,25 @@
 t sub method
+.
 %0A     * @thr
@@ -814,24 +814,25 @@
  mult method
+.
 %0A     * @thr
@@ -1029,16 +1029,17 @@
 v method
+.
 %0A     * 
@@ -1206,9 +1206,10 @@
 %0A    %7D%0A%0A
-
 %7D
+%0A

Update CalculatorTest.java