001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: *
017: */
018:
019: package org.apache.tools.ant.taskdefs;
020:
021: import org.apache.tools.ant.BuildException;
022: import org.apache.tools.ant.BuildFileTest;
023:
024: public class JavadocTest extends BuildFileTest {
025:
026: public JavadocTest(String name) {
027: super (name);
028: }
029:
030: private static final String BUILD_PATH = "src/etc/testcases/taskdefs/javadoc/";
031: private static final String BUILD_FILENAME = "javadoc.xml";
032: private static final String BUILD_FILE = BUILD_PATH
033: + BUILD_FILENAME;
034:
035: protected void setUp() throws Exception {
036: super .setUp();
037: configureProject(BUILD_FILE);
038: }
039:
040: // PR 38370
041: public void testDirsetPath() throws Exception {
042: executeTarget("dirsetPath");
043: }
044:
045: // PR 38370
046: public void testDirsetPathWithoutPackagenames() throws Exception {
047: try {
048: executeTarget("dirsetPathWithoutPackagenames");
049: } catch (BuildException e) {
050: fail("Contents of path should be picked up without specifying package names: "
051: + e);
052: }
053: }
054:
055: // PR 38370
056: public void testNestedDirsetPath() throws Exception {
057: executeTarget("nestedDirsetPath");
058: }
059:
060: // PR 38370
061: public void testFilesetPath() throws Exception {
062: try {
063: executeTarget("filesetPath");
064: } catch (BuildException e) {
065: fail("A path can contain filesets: " + e);
066: }
067: }
068:
069: // PR 38370
070: public void testNestedFilesetPath() throws Exception {
071: try {
072: executeTarget("nestedFilesetPath");
073: } catch (BuildException e) {
074: fail("A path can contain nested filesets: " + e);
075: }
076: }
077:
078: // PR 38370
079: public void testFilelistPath() throws Exception {
080: try {
081: executeTarget("filelistPath");
082: } catch (BuildException e) {
083: fail("A path can contain filelists: " + e);
084: }
085: }
086:
087: // PR 38370
088: public void testNestedFilelistPath() throws Exception {
089: try {
090: executeTarget("nestedFilelistPath");
091: } catch (BuildException e) {
092: fail("A path can contain nested filelists: " + e);
093: }
094: }
095:
096: // PR 38370
097: public void testPathelementPath() throws Exception {
098: executeTarget("pathelementPath");
099: }
100:
101: // PR 38370
102: public void testPathelementLocationPath() throws Exception {
103: try {
104: executeTarget("pathelementLocationPath");
105: } catch (BuildException e) {
106: fail("A path can contain pathelements pointing to a file: "
107: + e);
108: }
109: }
110:
111: // PR 38370
112: public void testNestedSource() throws Exception {
113: executeTarget("nestedSource");
114: }
115:
116: // PR 38370
117: public void testNestedFilesetRef() throws Exception {
118: executeTarget("nestedFilesetRef");
119: }
120:
121: // PR 38370
122: public void testNestedFilesetRefInPath() throws Exception {
123: executeTarget("nestedFilesetRefInPath");
124: }
125:
126: public void testNestedFilesetNoPatterns() throws Exception {
127: executeTarget("nestedFilesetNoPatterns");
128: }
129:
130: public void testDoublyNestedFileset() throws Exception {
131: executeTarget("doublyNestedFileset");
132: }
133:
134: public void testDoublyNestedFilesetNoPatterns() throws Exception {
135: executeTarget("doublyNestedFilesetNoPatterns");
136: }
137: }
|