Skip to content
Snippets Groups Projects
Commit 98417a9c authored by Carlos Eduardo da Silva's avatar Carlos Eduardo da Silva
Browse files

The test case.

parent ed0caf43
No related branches found
No related tags found
No related merge requests found
package br.ufrn.imd.imd0409.calculator.test;
import static org.junit.Assert.*;
import org.junit.Test;
import br.ufrn.imd.imd0409.calculator.bean.CalculatorCommonBusiness;
import br.ufrn.imd.imd0409.calculator.bean.NoInterfaceViewCalculatorBean;
public class CalculatorUnitTestCase {
@Test
public void testAdd() {
final CalculatorCommonBusiness calc = new NoInterfaceViewCalculatorBean();
final int expectedSum = 2 + 3 + 5;
final int actualSum = calc.add(2, 3, 5);
assertEquals("Addition did not return the expected result", expectedSum, actualSum);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment