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  package org.apache.commons.vfs.test;
18  
19  import org.apache.commons.vfs.impl.test.VfsClassLoaderTests;
20  
21  /***
22   * The suite of tests for a file system.
23   *
24   * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
25   * @author Gary D. Gregory
26   * @version $Id: ProviderTestSuite.java 480428 2006-11-29 06:15:24Z bayard $
27   */
28  public class ProviderTestSuite
29      extends AbstractTestSuite
30  {
31      /***
32       * Adds the tests for a file system to this suite.
33       */
34      public ProviderTestSuite(final ProviderTestConfig providerConfig) throws Exception
35      {
36          this(providerConfig, "", false);
37      }
38  
39      protected ProviderTestSuite(final ProviderTestConfig providerConfig,
40                                  final String prefix,
41                                  final boolean nested)
42          throws Exception
43      {
44          super(providerConfig, prefix, nested);
45      }
46  
47      /***
48       * Adds base tests - excludes the nested test cases.
49       */
50      protected void addBaseTests() throws Exception
51      {
52          addTests(ProviderCacheStrategyTests.class);
53          addTests(UriTests.class);
54          addTests(NamingTests.class);
55          addTests(ContentTests.class);
56          addTests(ProviderReadTests.class);
57          addTests(ProviderRandomReadTests.class);
58          addTests(ProviderWriteTests.class);
59          addTests(ProviderWriteAppendTests.class);
60          addTests(ProviderRandomReadWriteTests.class);
61          addTests(ProviderRenameTests.class);
62          addTests(ProviderDeleteTests.class);
63          addTests(LastModifiedTests.class);
64          addTests(UrlTests.class);
65          addTests(UrlStructureTests.class);
66          addTests(VfsClassLoaderTests.class);
67      }
68  }