~ubuntu-branches/ubuntu/utopic/ant/utopic

« back to all changes in this revision

Viewing changes to src/tests/junit/org/apache/tools/ant/taskdefs/JavadocTest.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-05-15 16:19:56 UTC
  • mfrom: (1.3.3) (5.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130515161956-vd4ht4u68rok767b
Tags: 1.9.1-1
* New upstream release
  - Refreshed the patches
  - Removed patch 0001-detect-classpath-based-JVM (merged upstream)
* Enabled hardening for the -gcj packages
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Licensed to the Apache Software Foundation (ASF) under one or more
3
 
 *  contributor license agreements.  See the NOTICE file distributed with
4
 
 *  this work for additional information regarding copyright ownership.
5
 
 *  The ASF licenses this file to You under the Apache License, Version 2.0
6
 
 *  (the "License"); you may not use this file except in compliance with
7
 
 *  the License.  You may obtain a copy of the License at
8
 
 *
9
 
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 
 *
11
 
 *  Unless required by applicable law or agreed to in writing, software
12
 
 *  distributed under the License is distributed on an "AS IS" BASIS,
13
 
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 
 *  See the License for the specific language governing permissions and
15
 
 *  limitations under the License.
16
 
 *
17
 
 */
18
 
 
19
 
package org.apache.tools.ant.taskdefs;
20
 
 
21
 
import org.apache.tools.ant.BuildException;
22
 
import org.apache.tools.ant.BuildFileTest;
23
 
 
24
 
public class JavadocTest extends BuildFileTest {
25
 
 
26
 
    public JavadocTest(String name) {
27
 
        super(name);
28
 
    }
29
 
 
30
 
    private static final String BUILD_PATH = "src/etc/testcases/taskdefs/javadoc/";
31
 
    private static final String BUILD_FILENAME = "javadoc.xml";
32
 
    private static final String BUILD_FILE = BUILD_PATH + BUILD_FILENAME;
33
 
 
34
 
    protected void setUp() throws Exception {
35
 
        super.setUp();
36
 
        configureProject(BUILD_FILE);
37
 
    }
38
 
 
39
 
    // PR 38370
40
 
    public void testDirsetPath() throws Exception {
41
 
        executeTarget("dirsetPath");
42
 
    }
43
 
 
44
 
    // PR 38370
45
 
    public void testDirsetPathWithoutPackagenames() throws Exception {
46
 
        try {
47
 
            executeTarget("dirsetPathWithoutPackagenames");
48
 
        } catch (BuildException e) {
49
 
            fail("Contents of path should be picked up without specifying package names: " + e);
50
 
        }
51
 
    }
52
 
 
53
 
    // PR 38370
54
 
    public void testNestedDirsetPath() throws Exception {
55
 
        executeTarget("nestedDirsetPath");
56
 
    }
57
 
 
58
 
    // PR 38370
59
 
    public void testFilesetPath() throws Exception {
60
 
        try {
61
 
            executeTarget("filesetPath");
62
 
        } catch (BuildException e) {
63
 
            fail("A path can contain filesets: " + e);
64
 
        }
65
 
    }
66
 
 
67
 
    // PR 38370
68
 
    public void testNestedFilesetPath() throws Exception {
69
 
        try {
70
 
            executeTarget("nestedFilesetPath");
71
 
        } catch (BuildException e) {
72
 
            fail("A path can contain nested filesets: " + e);
73
 
        }
74
 
    }
75
 
 
76
 
    // PR 38370
77
 
    public void testFilelistPath() throws Exception {
78
 
        try {
79
 
            executeTarget("filelistPath");
80
 
        } catch (BuildException e) {
81
 
            fail("A path can contain filelists: " + e);
82
 
        }
83
 
    }
84
 
 
85
 
    // PR 38370
86
 
    public void testNestedFilelistPath() throws Exception {
87
 
        try {
88
 
            executeTarget("nestedFilelistPath");
89
 
        } catch (BuildException e) {
90
 
            fail("A path can contain nested filelists: " + e);
91
 
        }
92
 
    }
93
 
 
94
 
    // PR 38370
95
 
    public void testPathelementPath() throws Exception {
96
 
        executeTarget("pathelementPath");
97
 
    }
98
 
 
99
 
    // PR 38370
100
 
    public void testPathelementLocationPath() throws Exception {
101
 
        try {
102
 
            executeTarget("pathelementLocationPath");
103
 
        } catch (BuildException e) {
104
 
            fail("A path can contain pathelements pointing to a file: " + e);
105
 
        }
106
 
    }
107
 
 
108
 
    // PR 38370
109
 
    public void testNestedSource() throws Exception {
110
 
        executeTarget("nestedSource");
111
 
    }
112
 
 
113
 
    // PR 38370
114
 
    public void testNestedFilesetRef() throws Exception {
115
 
        executeTarget("nestedFilesetRef");
116
 
    }
117
 
 
118
 
    // PR 38370
119
 
    public void testNestedFilesetRefInPath() throws Exception {
120
 
        executeTarget("nestedFilesetRefInPath");
121
 
    }
122
 
 
123
 
    public void testNestedFilesetNoPatterns() throws Exception {
124
 
        executeTarget("nestedFilesetNoPatterns");
125
 
    }
126
 
 
127
 
    public void testDoublyNestedFileset() throws Exception {
128
 
        executeTarget("doublyNestedFileset");
129
 
    }
130
 
 
131
 
    public void testDoublyNestedFilesetNoPatterns() throws Exception {
132
 
        executeTarget("doublyNestedFilesetNoPatterns");
133
 
    }
134
 
 
135
 
    public void testNonJavaIncludes() throws Exception { // #41264
136
 
        executeTarget("nonJavaIncludes");
137
 
    }
138
 
 
139
 
}
 
1
/*
 
2
 *  Licensed to the Apache Software Foundation (ASF) under one or more
 
3
 *  contributor license agreements.  See the NOTICE file distributed with
 
4
 *  this work for additional information regarding copyright ownership.
 
5
 *  The ASF licenses this file to You under the Apache License, Version 2.0
 
6
 *  (the "License"); you may not use this file except in compliance with
 
7
 *  the License.  You may obtain a copy of the License at
 
8
 *
 
9
 *      http://www.apache.org/licenses/LICENSE-2.0
 
10
 *
 
11
 *  Unless required by applicable law or agreed to in writing, software
 
12
 *  distributed under the License is distributed on an "AS IS" BASIS,
 
13
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
 *  See the License for the specific language governing permissions and
 
15
 *  limitations under the License.
 
16
 *
 
17
 */
 
18
 
 
19
package org.apache.tools.ant.taskdefs;
 
20
 
 
21
import org.apache.tools.ant.BuildException;
 
22
import org.apache.tools.ant.BuildFileTest;
 
23
 
 
24
public class JavadocTest extends BuildFileTest {
 
25
 
 
26
    public JavadocTest(String name) {
 
27
        super(name);
 
28
    }
 
29
 
 
30
    private static final String BUILD_PATH = "src/etc/testcases/taskdefs/javadoc/";
 
31
    private static final String BUILD_FILENAME = "javadoc.xml";
 
32
    private static final String BUILD_FILE = BUILD_PATH + BUILD_FILENAME;
 
33
 
 
34
    protected void setUp() throws Exception {
 
35
        super.setUp();
 
36
        configureProject(BUILD_FILE);
 
37
    }
 
38
 
 
39
    // PR 38370
 
40
    public void testDirsetPath() throws Exception {
 
41
        executeTarget("dirsetPath");
 
42
    }
 
43
 
 
44
    // PR 38370
 
45
    public void testDirsetPathWithoutPackagenames() throws Exception {
 
46
        try {
 
47
            executeTarget("dirsetPathWithoutPackagenames");
 
48
        } catch (BuildException e) {
 
49
            fail("Contents of path should be picked up without specifying package names: " + e);
 
50
        }
 
51
    }
 
52
 
 
53
    // PR 38370
 
54
    public void testNestedDirsetPath() throws Exception {
 
55
        executeTarget("nestedDirsetPath");
 
56
    }
 
57
 
 
58
    // PR 38370
 
59
    public void testFilesetPath() throws Exception {
 
60
        try {
 
61
            executeTarget("filesetPath");
 
62
        } catch (BuildException e) {
 
63
            fail("A path can contain filesets: " + e);
 
64
        }
 
65
    }
 
66
 
 
67
    // PR 38370
 
68
    public void testNestedFilesetPath() throws Exception {
 
69
        try {
 
70
            executeTarget("nestedFilesetPath");
 
71
        } catch (BuildException e) {
 
72
            fail("A path can contain nested filesets: " + e);
 
73
        }
 
74
    }
 
75
 
 
76
    // PR 38370
 
77
    public void testFilelistPath() throws Exception {
 
78
        try {
 
79
            executeTarget("filelistPath");
 
80
        } catch (BuildException e) {
 
81
            fail("A path can contain filelists: " + e);
 
82
        }
 
83
    }
 
84
 
 
85
    // PR 38370
 
86
    public void testNestedFilelistPath() throws Exception {
 
87
        try {
 
88
            executeTarget("nestedFilelistPath");
 
89
        } catch (BuildException e) {
 
90
            fail("A path can contain nested filelists: " + e);
 
91
        }
 
92
    }
 
93
 
 
94
    // PR 38370
 
95
    public void testPathelementPath() throws Exception {
 
96
        executeTarget("pathelementPath");
 
97
    }
 
98
 
 
99
    // PR 38370
 
100
    public void testPathelementLocationPath() throws Exception {
 
101
        try {
 
102
            executeTarget("pathelementLocationPath");
 
103
        } catch (BuildException e) {
 
104
            fail("A path can contain pathelements pointing to a file: " + e);
 
105
        }
 
106
    }
 
107
 
 
108
    // PR 38370
 
109
    public void testNestedSource() throws Exception {
 
110
        executeTarget("nestedSource");
 
111
    }
 
112
 
 
113
    // PR 38370
 
114
    public void testNestedFilesetRef() throws Exception {
 
115
        executeTarget("nestedFilesetRef");
 
116
    }
 
117
 
 
118
    // PR 38370
 
119
    public void testNestedFilesetRefInPath() throws Exception {
 
120
        executeTarget("nestedFilesetRefInPath");
 
121
    }
 
122
 
 
123
    public void testNestedFilesetNoPatterns() throws Exception {
 
124
        executeTarget("nestedFilesetNoPatterns");
 
125
    }
 
126
 
 
127
    public void testDoublyNestedFileset() throws Exception {
 
128
        executeTarget("doublyNestedFileset");
 
129
    }
 
130
 
 
131
    public void testDoublyNestedFilesetNoPatterns() throws Exception {
 
132
        executeTarget("doublyNestedFilesetNoPatterns");
 
133
    }
 
134
 
 
135
    public void testNonJavaIncludes() throws Exception { // #41264
 
136
        executeTarget("nonJavaIncludes");
 
137
    }
 
138
 
 
139
}