KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > test > core > theme > strategy > StrategyFactoryTest


1 package org.jboss.portal.test.core.theme.strategy;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5 import junit.framework.TestSuite;
6
7
8 /**
9  * Typically you will have one of these classes for every
10  * class in the package you want to test named ClassNameTest
11  */

12 public class StrategyFactoryTest extends TestCase
13 {
14
15
16    /**
17     * Creates the test with a given name.
18     */

19    public StrategyFactoryTest(String JavaDoc testName)
20    {
21       super(testName);
22    }
23
24    /**
25     * Static method used to lauch this suite of tests.
26     */

27    public static Test suite()
28    {
29       return new TestSuite(StrategyFactoryTest.class);
30    }
31
32    /**
33     * Put and initialization code here. Gets called for every test
34     * in this suite class (so before every testMethod gets called.
35     */

36    public void setUp()
37    {
38 // StrategyFactory.
39
}
40
41    /**
42     * Put and clean up code here. Gets called for every test
43     * in this suite class (so after every testMethod gets called.
44     */

45    public void tearDown()
46    {
47    }
48
49
50    /**
51     * This is an example testMethod. Any method
52     * named testXXX that takes no args and returns
53     * void will be called by the testing framework.
54     * Typically, you would have one of these for every
55     * method you wanted to test on your class.
56     */

57    public void testSomeMethod()
58    {
59       //TODO
60
}
61 }
62
Popular Tags