01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: package org.apache.tools.ant.taskdefs.optional;
19:
20: import org.apache.tools.ant.BuildFileTest;
21:
22: /**
23: * Tests the XMLValidate optional task with nested external catalogs.
24: *
25: * @see XmlValidateTest
26: * @since Ant 1.6
27: */
28: public class XmlValidateCatalogTest extends BuildFileTest {
29:
30: /**
31: * where tasks run
32: */
33: private final static String TASKDEFS_DIR = "src/etc/testcases/taskdefs/optional/";
34:
35: /**
36: * Constructor
37: *
38: * @param name testname
39: */
40: public XmlValidateCatalogTest(String name) {
41: super (name);
42: }
43:
44: /**
45: * The JUnit setup method
46: */
47: public void setUp() {
48: configureProject(TASKDEFS_DIR + "xmlvalidate.xml");
49: }
50:
51: /**
52: * The teardown method for JUnit
53: */
54: public void tearDown() {
55:
56: }
57:
58: /**
59: * catalogfiles fileset should be ignored
60: * if resolver.jar is not present, but will
61: * be used if it is. either way, test should
62: * work b/c we have a nested dtd with the same
63: * entity
64: */
65: public void testXmlCatalogFiles() {
66: executeTarget("xmlcatalogfiles");
67: }
68:
69: /**
70: * Test nested catalogpath.
71: * It should be ignored if resolver.jar is not
72: * present, but will be used if it is. either
73: * way, test should work b/c we have a nested
74: * dtd with the same entity
75: */
76: public void testXmlCatalogPath() {
77: executeTarget("xmlcatalogpath");
78: }
79:
80: }
|