KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > vfs > test > ProviderTestSuite


1 /*
2  * Copyright 2002-2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.vfs.test;
17
18 import org.apache.commons.vfs.impl.test.VfsClassLoaderTests;
19
20 /**
21  * The suite of tests for a file system.
22  *
23  * @author <a HREF="mailto:adammurdoch@apache.org">Adam Murdoch</a>
24  * @author Gary D. Gregory
25  */

26 public class ProviderTestSuite
27     extends AbstractTestSuite
28 {
29     /**
30      * Adds the tests for a file system to this suite.
31      */

32     public ProviderTestSuite(final ProviderTestConfig providerConfig) throws Exception JavaDoc
33     {
34         this(providerConfig, "", false);
35     }
36
37     protected ProviderTestSuite(final ProviderTestConfig providerConfig,
38                                 final String JavaDoc prefix,
39                                 final boolean nested)
40         throws Exception JavaDoc
41     {
42         super(providerConfig, prefix, nested);
43     }
44
45     /**
46      * Adds base tests - excludes the nested test cases.
47      */

48     protected void addBaseTests() throws Exception JavaDoc
49     {
50         addTests(UriTests.class);
51         addTests(NamingTests.class);
52         addTests(ContentTests.class);
53         addTests(ProviderReadTests.class);
54         addTests(ProviderRandomReadTests.class);
55         addTests(ProviderWriteTests.class);
56         addTests(ProviderWriteAppendTests.class);
57         addTests(ProviderRandomReadWriteTests.class);
58         addTests(ProviderRenameTests.class);
59         addTests(ProviderDeleteTests.class);
60         addTests(LastModifiedTests.class);
61         addTests(UrlTests.class);
62         addTests(UrlStructureTests.class);
63         addTests(VfsClassLoaderTests.class);
64     }
65 }
66
Popular Tags