jtulach@17: /* jtulach@17: * Žluťoučký kůň je naše hříbátko. jtulach@17: * and open the template in the editor. jtulach@17: */ jtulach@17: jtulach@17: package api; jtulach@17: jtulach@17: import junit.framework.TestCase; jtulach@17: jtulach@17: /** jtulach@17: * jtulach@17: * @author Jaroslav Tulach jtulach@17: */ jtulach@17: public class FactorialTest extends TestCase { jtulach@17: jtulach@17: public FactorialTest(String testName) { jtulach@17: super(testName); jtulach@17: } jtulach@17: jtulach@17: @Override jtulach@17: protected void setUp() throws Exception { jtulach@17: super.setUp(); jtulach@17: } jtulach@17: jtulach@17: @Override jtulach@17: protected void tearDown() throws Exception { jtulach@17: super.tearDown(); jtulach@17: } jtulach@17: jtulach@17: public void testFactorial3() { jtulach@17: assertEquals(6, Factorial.factorial(3)); jtulach@17: } jtulach@17: jtulach@20: public void testFactorial4() { jtulach@20: assertEquals(24, Factorial.factorial(4)); jtulach@20: } jtulach@20: jtulach@17: public void testFactorial5() { jtulach@17: assertEquals(120, Factorial.factorial(5)); jtulach@17: } jtulach@17: }