You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/10/26 01:43:32 UTC

cvs commit: jakarta-commons/io/src/test/org/apache/commons/io/output PackageTestSuite.java

scolebourne    2004/10/25 16:43:32

  Added:       io/src/test/org/apache/commons/io/input
                        PackageTestSuite.java
               io/src/test/org/apache/commons/io/filefilter
                        PackageTestSuite.java
               io/src/test/org/apache/commons/io/output
                        PackageTestSuite.java
  Log:
  Add package test suites
  
  Revision  Changes    Path
  1.1                  jakarta-commons/io/src/test/org/apache/commons/io/input/PackageTestSuite.java
  
  Index: PackageTestSuite.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.commons.io.input;
  
  import junit.framework.Test;
  import junit.framework.TestSuite;
  import junit.textui.TestRunner;
  
  /**
   * A basic test suite that tests all the IO input package.
   * 
   * @author Stephen Colebourne
   */
  public class PackageTestSuite {
  
      public static void main(String[] args) {
          TestRunner.run(suite());
      }
  
      public static Test suite() {
          TestSuite suite = new TestSuite("IO Utilities - input");
          suite.addTest(new TestSuite(CountingInputStreamTest.class));
          suite.addTest(new TestSuite(SwappedDataInputStreamTest.class));
          return suite;
      }
  }
  
  
  
  1.1                  jakarta-commons/io/src/test/org/apache/commons/io/filefilter/PackageTestSuite.java
  
  Index: PackageTestSuite.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.commons.io.filefilter;
  
  import junit.framework.Test;
  import junit.framework.TestSuite;
  import junit.textui.TestRunner;
  
  /**
   * A basic test suite that tests all the IO filefilter package.
   * 
   * @author Stephen Colebourne
   */
  public class PackageTestSuite {
  
      public static void main(String[] args) {
          TestRunner.run(suite());
      }
  
      public static Test suite() {
          TestSuite suite = new TestSuite("IO Utilities - file filters");
          suite.addTest(new TestSuite(AndFileFilterTestCase.class));
          suite.addTest(new TestSuite(FileFilterTestCase.class));
          suite.addTest(new TestSuite(OrFileFilterTestCase.class));
          return suite;
      }
  }
  
  
  
  1.1                  jakarta-commons/io/src/test/org/apache/commons/io/output/PackageTestSuite.java
  
  Index: PackageTestSuite.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.commons.io.output;
  
  import junit.framework.Test;
  import junit.framework.TestSuite;
  import junit.textui.TestRunner;
  
  /**
   * A basic test suite that tests all the IO output package.
   * 
   * @author Stephen Colebourne
   */
  public class PackageTestSuite {
  
      public static void main(String[] args) {
          TestRunner.run(suite());
      }
  
      public static Test suite() {
          TestSuite suite = new TestSuite("IO Utilities - output");
          suite.addTest(new TestSuite(ByteArrayOutputStreamTestCase.class));
          suite.addTest(new TestSuite(CountingOutputStreamTest.class));
          suite.addTest(new TestSuite(DeferredFileOutputStreamTest.class));
          suite.addTest(new TestSuite(LockableFileWriterTest.class));
          suite.addTest(new TestSuite(NullOutputStreamTest.class));
          suite.addTest(new TestSuite(TeeOutputStreamTest.class));
          return suite;
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org