Converting to ant freeform script as it allows to demonstrate the amoeba effect
2 * Žluťoučký kůň je naše hříbátko.
3 * and open the template in the editor.
8 import junit.framework.TestCase;
12 * @author Jaroslav Tulach <jtulach@netbeans.org>
14 public class ArithmeticaTest extends TestCase {
16 public ArithmeticaTest(String testName) {
21 protected void setUp() throws Exception {
26 protected void tearDown() throws Exception {
30 public void testSumTwo() {
31 Arithmetica instance = new Arithmetica();
32 assertEquals("+", 5, instance.sumTwo(3, 2));
35 public void testSumAll() {
36 Arithmetica instance = new Arithmetica();
37 assertEquals("+", 6, instance.sumAll(3, 2, 1));
40 public void testSumRange() {
41 Arithmetica instance = new Arithmetica();
42 assertEquals("+", 6, instance.sumRange(1, 3));
43 assertEquals("10", 55, instance.sumRange(1, 10));