1.1 --- a/samples/composition/src-test/api/FactorialTest.java Thu Feb 12 11:00:41 2009 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,44 +0,0 @@
1.4 -/*
1.5 - * Žluťoučký kůň je naše hříbátko.
1.6 - * and open the template in the editor.
1.7 - */
1.8 -
1.9 -package api;
1.10 -
1.11 -import junit.framework.TestCase;
1.12 -
1.13 -/**
1.14 - *
1.15 - * @author Jaroslav Tulach <jtulach@netbeans.org>
1.16 - */
1.17 -public class FactorialTest extends TestCase {
1.18 -
1.19 - public FactorialTest(String testName) {
1.20 - super(testName);
1.21 - }
1.22 -
1.23 - @Override
1.24 - protected void setUp() throws Exception {
1.25 - super.setUp();
1.26 - }
1.27 -
1.28 - @Override
1.29 - protected void tearDown() throws Exception {
1.30 - super.tearDown();
1.31 - }
1.32 -
1.33 - public void testFactorial3() {
1.34 - if (Boolean.getBoolean("no.failures")) return;
1.35 - assertEquals(6, Factorial.factorial(3));
1.36 - }
1.37 -
1.38 - public void testFactorial4() {
1.39 - if (Boolean.getBoolean("no.failures")) return;
1.40 - assertEquals(24, Factorial.factorial(4));
1.41 - }
1.42 -
1.43 - public void testFactorial5() {
1.44 - if (Boolean.getBoolean("no.failures")) return;
1.45 - assertEquals(120, Factorial.factorial(5));
1.46 - }
1.47 -}