jtulach@325: /* jtulach@325: * Žluťoučký kůň je naše hříbátko. jtulach@325: * and open the template in the editor. jtulach@325: */ jtulach@325: jtulach@325: package org.apidesign.sidemeanings.math; jtulach@325: jtulach@325: import org.junit.Assert; jtulach@325: import org.junit.Before; jtulach@325: import org.junit.Test; jtulach@325: jtulach@325: /** jtulach@325: * jtulach@325: * @author Jaroslav Tulach jtulach@325: */ jtulach@325: public class FactorialTest { jtulach@325: Factorial instance; jtulach@325: jtulach@325: @Before jtulach@325: public void setUp() { jtulach@325: instance = new Factorial(); jtulach@325: } jtulach@325: jtulach@325: @Test jtulach@325: public void testFactorial3() { jtulach@325: Assert.assertEquals(6, instance.factorial(3)); jtulach@325: } jtulach@325: jtulach@325: @Test jtulach@325: public void testFactorial4() { jtulach@325: Assert.assertEquals(24, instance.factorial(4)); jtulach@325: } jtulach@325: jtulach@325: @Test jtulach@325: public void testFactorial5() { jtulach@325: Assert.assertEquals(120, instance.factorial(5)); jtulach@325: } jtulach@325: }