2 * Žluťoučký kůň je naše hříbátko.
3 * and open the template in the editor.
6 package org.apidesign.math.test;
8 import junit.framework.TestCase;
12 * @author Jaroslav Tulach <jtulach@netbeans.org>
14 public class FactorialTest extends TestCase {
16 public FactorialTest(String testName) {
21 protected void setUp() throws Exception {
26 protected void tearDown() throws Exception {
30 public void testFactorial3() {
31 if (Boolean.getBoolean("no.failures")) return;
32 assertEquals(6, Factorial.factorial(3));
35 public void testFactorial4() {
36 if (Boolean.getBoolean("no.failures")) return;
37 assertEquals(24, Factorial.factorial(4));
40 public void testFactorial5() {
41 if (Boolean.getBoolean("no.failures")) return;
42 assertEquals(120, Factorial.factorial(5));