~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to junit/src/org/netbeans/modules/junit/resources/templates/JUnit3Suite.java.template

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<#-- FreeMarker template (see http://freemarker.org/) -->
 
2
<#assign licenseFirst = "/*">
 
3
<#assign licensePrefix = " * ">
 
4
<#assign licenseLast = " */">
 
5
<#include "../Licenses/license-${project.license}.txt">
 
6
 
 
7
<#if package?? && package != "">
 
8
package ${package};
 
9
 
 
10
</#if>
 
11
import junit.framework.Test;
 
12
import junit.framework.TestCase;
 
13
import junit.framework.TestSuite;
 
14
 
 
15
/**
 
16
 *
 
17
 * @author ${user}
 
18
 */
 
19
public class ${name} extends TestCase {
 
20
    
 
21
    public ${name}(String testName) {
 
22
        super(testName);
 
23
    }            
 
24
 
 
25
    <#-- classNames:  "FooA,FooB" -->
 
26
    <#-- classes:     "FooA.class,FooB.class" -->
 
27
    public static Test suite() {
 
28
        TestSuite suite = new TestSuite("${name}");
 
29
        <#list "${classNames}"?split(",") as className>
 
30
        suite.addTest(${className}.suite());
 
31
        </#list>
 
32
        return suite;
 
33
    }
 
34
 
 
35
<#if methodSetUp!false>
 
36
    protected void setUp() throws Exception {
 
37
        super.setUp();
 
38
    }
 
39
 
 
40
</#if>
 
41
<#if methodTearDown!false>
 
42
    protected void tearDown() throws Exception {
 
43
        super.tearDown();
 
44
    }
 
45
 
 
46
</#if>
 
47
}