Browse Source

Remove unused imports from testcases

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@374473 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 19 years ago
parent
commit
c61f9feb53
81 changed files with 188 additions and 368 deletions
  1. +2
    -5
      src/testcases/org/apache/tools/ant/DirectoryScannerTest.java
  2. +1
    -2
      src/testcases/org/apache/tools/ant/ExecutorTest.java
  3. +1
    -2
      src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java
  4. +1
    -3
      src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java
  5. +1
    -3
      src/testcases/org/apache/tools/ant/filters/NoNewLineTest.java
  6. +1
    -2
      src/testcases/org/apache/tools/ant/filters/TokenFilterTest.java
  7. +1
    -3
      src/testcases/org/apache/tools/ant/taskdefs/AvailableTest.java
  8. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/BUnzip2Test.java
  9. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/BasenameTest.java
  10. +1
    -3
      src/testcases/org/apache/tools/ant/taskdefs/CallTargetTest.java
  11. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/ChecksumTest.java
  12. +1
    -4
      src/testcases/org/apache/tools/ant/taskdefs/ConditionTest.java
  13. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/CopydirTest.java
  14. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/CopyfileTest.java
  15. +4
    -3
      src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java
  16. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/DirnameTest.java
  17. +4
    -5
      src/testcases/org/apache/tools/ant/taskdefs/ExecuteOnTest.java
  18. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/GetTest.java
  19. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/GzipTest.java
  20. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/InputTest.java
  21. +2
    -4
      src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java
  22. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/LoadPropertiesTest.java
  23. +2
    -4
      src/testcases/org/apache/tools/ant/taskdefs/MacroDefTest.java
  24. +1
    -4
      src/testcases/org/apache/tools/ant/taskdefs/MultiMapTest.java
  25. +2
    -3
      src/testcases/org/apache/tools/ant/taskdefs/ParallelTest.java
  26. +2
    -3
      src/testcases/org/apache/tools/ant/taskdefs/PreSetDefTest.java
  27. +5
    -6
      src/testcases/org/apache/tools/ant/taskdefs/StyleTest.java
  28. +1
    -3
      src/testcases/org/apache/tools/ant/taskdefs/SubAntTest.java
  29. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/SyncTest.java
  30. +1
    -3
      src/testcases/org/apache/tools/ant/taskdefs/TaskdefsTest.java
  31. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/TypedefTest.java
  32. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/XmlnsTest.java
  33. +4
    -5
      src/testcases/org/apache/tools/ant/taskdefs/ZipTest.java
  34. +1
    -3
      src/testcases/org/apache/tools/ant/taskdefs/condition/IsReferenceTest.java
  35. +1
    -4
      src/testcases/org/apache/tools/ant/taskdefs/optional/DotnetTest.java
  36. +4
    -6
      src/testcases/org/apache/tools/ant/taskdefs/optional/JspcTest.java
  37. +6
    -7
      src/testcases/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java
  38. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/optional/PvcsTest.java
  39. +1
    -4
      src/testcases/org/apache/tools/ant/taskdefs/optional/WsdlToDotnetTest.java
  40. +1
    -5
      src/testcases/org/apache/tools/ant/taskdefs/optional/XmlValidateCatalogTest.java
  41. +3
    -9
      src/testcases/org/apache/tools/ant/taskdefs/optional/depend/DependTest.java
  42. +1
    -11
      src/testcases/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTest.java
  43. +2
    -1
      src/testcases/org/apache/tools/ant/taskdefs/optional/junit/TestFormatter.java
  44. +1
    -1
      src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassFileTest.java
  45. +3
    -3
      src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassPathLoaderTest.java
  46. +4
    -5
      src/testcases/org/apache/tools/ant/types/AbstractFileSetTest.java
  47. +1
    -2
      src/testcases/org/apache/tools/ant/types/AddTypeTest.java
  48. +2
    -5
      src/testcases/org/apache/tools/ant/types/CommandlineTest.java
  49. +1
    -8
      src/testcases/org/apache/tools/ant/types/DescriptionTest.java
  50. +3
    -4
      src/testcases/org/apache/tools/ant/types/EnumeratedAttributeTest.java
  51. +3
    -7
      src/testcases/org/apache/tools/ant/types/FileListTest.java
  52. +1
    -8
      src/testcases/org/apache/tools/ant/types/FileSetTest.java
  53. +6
    -9
      src/testcases/org/apache/tools/ant/types/FilterSetTest.java
  54. +11
    -9
      src/testcases/org/apache/tools/ant/types/MapperTest.java
  55. +6
    -7
      src/testcases/org/apache/tools/ant/types/PathTest.java
  56. +4
    -5
      src/testcases/org/apache/tools/ant/types/PatternSetTest.java
  57. +1
    -3
      src/testcases/org/apache/tools/ant/types/PolyTest.java
  58. +1
    -5
      src/testcases/org/apache/tools/ant/types/PropertySetTest.java
  59. +6
    -9
      src/testcases/org/apache/tools/ant/types/ResourceOutputTest.java
  60. +3
    -7
      src/testcases/org/apache/tools/ant/types/TarFileSetTest.java
  61. +1
    -6
      src/testcases/org/apache/tools/ant/types/XMLCatalogBuildFileTest.java
  62. +8
    -13
      src/testcases/org/apache/tools/ant/types/XMLCatalogTest.java
  63. +3
    -7
      src/testcases/org/apache/tools/ant/types/ZipFileSetTest.java
  64. +3
    -7
      src/testcases/org/apache/tools/ant/types/optional/depend/ClassFileSetTest.java
  65. +5
    -6
      src/testcases/org/apache/tools/ant/types/selectors/BaseSelectorTest.java
  66. +4
    -6
      src/testcases/org/apache/tools/ant/types/selectors/ContainsRegexpTest.java
  67. +1
    -6
      src/testcases/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java
  68. +1
    -6
      src/testcases/org/apache/tools/ant/types/selectors/DepthSelectorTest.java
  69. +1
    -6
      src/testcases/org/apache/tools/ant/types/selectors/FilenameSelectorTest.java
  70. +13
    -12
      src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
  71. +1
    -6
      src/testcases/org/apache/tools/ant/types/selectors/SizeSelectorTest.java
  72. +1
    -12
      src/testcases/org/apache/tools/ant/types/selectors/TypeSelectorTest.java
  73. +2
    -2
      src/testcases/org/apache/tools/ant/util/ClasspathUtilsTest.java
  74. +3
    -3
      src/testcases/org/apache/tools/ant/util/DOMElementWriterTest.java
  75. +1
    -2
      src/testcases/org/apache/tools/ant/util/DateUtilsTest.java
  76. +1
    -3
      src/testcases/org/apache/tools/ant/util/GlobPatternMapperTest.java
  77. +3
    -5
      src/testcases/org/apache/tools/ant/util/ResourceUtilsTest.java
  78. +1
    -3
      src/testcases/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java
  79. +1
    -3
      src/testcases/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java
  80. +2
    -4
      src/testcases/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java
  81. +3
    -5
      src/testcases/org/apache/tools/zip/ZipOutputStreamTest.java

+ 2
- 5
src/testcases/org/apache/tools/ant/DirectoryScannerTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2005 The Apache Software Foundation
* Copyright 2001-2006 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.
@@ -18,12 +18,9 @@
package org.apache.tools.ant;

import org.apache.tools.ant.taskdefs.condition.Os;
import org.apache.tools.ant.types.Resource;
import org.apache.tools.ant.util.FileUtils;
import org.apache.tools.ant.util.JavaEnvUtils;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import java.io.IOException;
import java.util.Set;


+ 1
- 2
src/testcases/org/apache/tools/ant/ExecutorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2005 The Apache Software Foundation
* Copyright 2005-2006 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.
@@ -19,7 +19,6 @@ package org.apache.tools.ant;

import java.util.Vector;

import org.apache.tools.ant.taskdefs.Exit;

/**
* Executor tests


+ 1
- 2
src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2001,2003-2004 The Apache Software Foundation
* Copyright 2000-2001,2003-2004,2006 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.
@@ -22,7 +22,6 @@ import junit.framework.AssertionFailedError;
import java.io.File;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Hashtable;


+ 1
- 3
src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005 The Apache Software Foundation
* Copyright 2003-2006 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.
@@ -17,12 +17,10 @@

package org.apache.tools.ant.filters;

import java.io.File;
import java.io.Reader;
import java.io.FileReader;
import java.io.IOException;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.util.FileUtils;



+ 1
- 3
src/testcases/org/apache/tools/ant/filters/NoNewLineTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,11 +17,9 @@

package org.apache.tools.ant.filters;

import java.io.File;
import java.io.IOException;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.util.FileUtils;

/** JUnit Testcases for No new line when filterchain used
*/


+ 1
- 2
src/testcases/org/apache/tools/ant/filters/TokenFilterTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005 The Apache Software Foundation
* Copyright 2003-2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.filters;

import java.io.File;
import java.io.Reader;
import java.io.FileReader;
import java.io.IOException;


+ 1
- 3
src/testcases/org/apache/tools/ant/taskdefs/AvailableTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002, 2004-2005 The Apache Software Foundation
* Copyright 2000-2002, 2004-2006 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.
@@ -18,8 +18,6 @@
package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.JavaEnvUtils;

/**
* JUnit test for the Available task/condition.


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/BUnzip2Test.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2005 The Apache Software Foundation
* Copyright 2001-2006 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.
@@ -20,7 +20,6 @@ package org.apache.tools.ant.taskdefs;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.util.FileUtils;

import java.io.IOException;

/**
*/


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/BasenameTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 3
src/testcases/org/apache/tools/ant/taskdefs/CallTargetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -20,8 +20,6 @@ package org.apache.tools.ant.taskdefs;
import java.util.Vector;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.JavaEnvUtils;

/**
*/


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/ChecksumTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001,2003-2005 The Apache Software Foundation
* Copyright 2001,2003-2006 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.
@@ -20,7 +20,6 @@ package org.apache.tools.ant.taskdefs;
import org.apache.tools.ant.BuildFileTest;

import java.io.IOException;
import java.io.File;

/**
*/


+ 1
- 4
src/testcases/org/apache/tools/ant/taskdefs/ConditionTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002, 2004-2005 The Apache Software Foundation
* Copyright 2002, 2004-2006 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.
@@ -16,10 +16,7 @@
*/
package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import java.lang.reflect.InvocationTargetException;

/**
* @created 13 January 2002


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/CopydirTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/CopyfileTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2001,2004 The Apache Software Foundation
* Copyright 2000-2001,2004,2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;

/**


+ 4
- 3
src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2004 The Apache Software Foundation
* Copyright 2002-2004,2006 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.
@@ -16,10 +16,11 @@
*/
package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.*;
import org.apache.tools.ant.BuildFileTest;
import java.util.Random;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

/**
* A simple task that prints to System.out and System.err and then catches
* the output which it then checks. If the output does not match, an


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/DirnameTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.taskdefs.condition.Os;



+ 4
- 5
src/testcases/org/apache/tools/ant/taskdefs/ExecuteOnTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2004-2005 The Apache Software Foundation.
* Copyright 2004-2006 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.
@@ -17,13 +17,12 @@

package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.util.FileUtils;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStream;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.util.FileUtils;

/**
* Unit test for the <apply> task.


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/GetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2001, 2004-2005 The Apache Software Foundation
* Copyright 2000-2001, 2004-2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/GzipTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004-2005 The Apache Software Foundation
* Copyright 2000-2002,2004-2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/InputTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004-2005 The Apache Software Foundation
* Copyright 2001-2002,2004-2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import java.io.InputStream;
import java.io.FileInputStream;

import org.apache.tools.ant.BuildFileTest;


+ 2
- 4
src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004,2006 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.
@@ -16,10 +16,8 @@
*/
package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildException;
import java.io.File;
import org.apache.tools.ant.BuildFileTest;

/**
* Test the load file task


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/LoadPropertiesTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004-2005 The Apache Software Foundation
* Copyright 2002,2004-2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.*;
import org.apache.tools.ant.BuildFileTest;

/**


+ 2
- 4
src/testcases/org/apache/tools/ant/taskdefs/MacroDefTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005 The Apache Software Foundation
* Copyright 2003-2006 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.
@@ -17,10 +17,8 @@

package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildFileTest;

/**
*/


+ 1
- 4
src/testcases/org/apache/tools/ant/taskdefs/MultiMapTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,10 +17,7 @@

package org.apache.tools.ant.taskdefs;

import java.lang.reflect.Method;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.FileNameMapper;




+ 2
- 3
src/testcases/org/apache/tools/ant/taskdefs/ParallelTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2004 The Apache Software Foundation
* Copyright 2002-2004,2006 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.
@@ -16,13 +16,12 @@
*/
package org.apache.tools.ant.taskdefs;
import java.io.PrintStream;

import junit.framework.AssertionFailedError;
import org.apache.tools.ant.BuildException;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.DemuxOutputStream;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;

/**
* Test of the parallel TaskContainer


+ 2
- 3
src/testcases/org/apache/tools/ant/taskdefs/PreSetDefTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,9 +17,8 @@

package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.types.FileSet;



+ 5
- 6
src/testcases/org/apache/tools/ant/taskdefs/StyleTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005 The Apache Software Foundation
* Copyright 2003-2006 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.
@@ -17,14 +17,13 @@
package org.apache.tools.ant.taskdefs;


import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.util.FileUtils;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.io.FileWriter;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.taskdefs.optional.XsltTest;
import org.apache.tools.ant.util.FileUtils;


/**


+ 1
- 3
src/testcases/org/apache/tools/ant/taskdefs/SubAntTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005 The Apache Software Foundation
* Copyright 2003-2006 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.
@@ -24,8 +24,6 @@ import junit.framework.AssertionFailedError;
import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.BuildListener;
import org.apache.tools.ant.input.InputHandler;
import org.apache.tools.ant.types.Path;

/**
*/


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/SyncTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2004-2005 The Apache Software Foundation
* Copyright 2004-2006 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.
@@ -18,7 +18,6 @@
package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import java.io.File;

public class SyncTest extends BuildFileTest {



+ 1
- 3
src/testcases/org/apache/tools/ant/taskdefs/TaskdefsTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2001,2004 The Apache Software Foundation
* Copyright 2000-2001,2004,2006 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.
@@ -17,8 +17,6 @@

package org.apache.tools.ant.taskdefs;

import junit.framework.*;
import java.io.*;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/TypedefTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2005 The Apache Software Foundation
* Copyright 2001-2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/XmlnsTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -18,7 +18,6 @@
package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;

/**


+ 4
- 5
src/testcases/org/apache/tools/ant/taskdefs/ZipTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2005 The Apache Software Foundation
* Copyright 2000-2006 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.
@@ -17,15 +17,14 @@

package org.apache.tools.ant.taskdefs;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.zip.UnixStat;

import java.io.File;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import java.util.Enumeration;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.zip.UnixStat;

/**
*/


+ 1
- 3
src/testcases/org/apache/tools/ant/taskdefs/condition/IsReferenceTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -16,8 +16,6 @@
*/
package org.apache.tools.ant.taskdefs.condition;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 4
src/testcases/org/apache/tools/ant/taskdefs/optional/DotnetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2005 The Apache Software Foundation
* Copyright 2002-2006 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.
@@ -16,9 +16,6 @@
*/
package org.apache.tools.ant.taskdefs.optional;

import java.io.*;
import java.util.Properties;

import org.apache.tools.ant.BuildFileTest;

/**


+ 4
- 6
src/testcases/org/apache/tools/ant/taskdefs/optional/JspcTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2004 The Apache Software Foundation
* Copyright 2002-2004,2006 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.
@@ -16,16 +16,14 @@
*/
package org.apache.tools.ant.taskdefs.optional;

import java.io.*;
import java.util.Properties;
import java.io.File;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.taskdefs.optional.jsp.JspMangler;
import org.apache.tools.ant.taskdefs.optional.jsp.Jasper41Mangler;
import org.apache.tools.ant.taskdefs.optional.jsp.JspC;
import org.apache.tools.ant.taskdefs.optional.jsp.JspMangler;
import org.apache.tools.ant.taskdefs.optional.jsp.JspNameMangler;
import org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdapterFactory;
import org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdapter;
import org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdapterFactory;

/**
* Tests the Jspc task.


+ 6
- 7
src/testcases/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2004 The Apache Software Foundation
* Copyright 2001-2004,2006 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.
@@ -16,13 +16,12 @@
*/
package org.apache.tools.ant.taskdefs.optional;

import org.apache.tools.ant.BuildFileTest;

import java.util.Properties;
import java.io.FileOutputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;

import org.apache.tools.ant.BuildFileTest;

/**
* JUnit testcase that excercises the optional PropertyFile task in ant.


+ 1
- 2
src/testcases/org/apache/tools/ant/taskdefs/optional/PvcsTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001,2004 The Apache Software Foundation
* Copyright 2001,2004,2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.taskdefs.optional;

import java.io.*;
import org.apache.tools.ant.BuildFileTest;

/**


+ 1
- 4
src/testcases/org/apache/tools/ant/taskdefs/optional/WsdlToDotnetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -16,9 +16,6 @@
*/
package org.apache.tools.ant.taskdefs.optional;

import java.io.*;
import java.util.Properties;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet;



+ 1
- 5
src/testcases/org/apache/tools/ant/taskdefs/optional/XmlValidateCatalogTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -16,10 +16,6 @@
*/
package org.apache.tools.ant.taskdefs.optional;

import java.io.*;
import java.util.Properties;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;

/**


+ 3
- 9
src/testcases/org/apache/tools/ant/taskdefs/optional/depend/DependTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2004 The Apache Software Foundation
* Copyright 2001-2004,2006 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.
@@ -17,17 +17,11 @@

package org.apache.tools.ant.taskdefs.optional.depend;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Date;
import java.util.Vector;
import java.util.Enumeration;
import java.util.Hashtable;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.FileSet;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.types.FileSet;

/**
* Testcase for the Depend optional task.


+ 1
- 11
src/testcases/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,17 +17,7 @@

package org.apache.tools.ant.taskdefs.optional.jdepend;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Date;
import java.util.Vector;
import java.util.Enumeration;
import java.util.Hashtable;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.FileSet;
import org.apache.tools.ant.DirectoryScanner;

/**
* Testcase for the JDepend optional task.


+ 2
- 1
src/testcases/org/apache/tools/ant/taskdefs/optional/junit/TestFormatter.java View File

@@ -19,9 +19,10 @@ package org.apache.tools.ant.taskdefs.optional.junit;

import java.io.IOException;
import java.io.OutputStream;
import java.text.NumberFormat;
import junit.framework.AssertionFailedError;
import junit.framework.Test;

import org.apache.tools.ant.BuildException;

public class TestFormatter implements JUnitResultFormatter {


+ 1
- 1
src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassFileTest.java View File

@@ -20,7 +20,7 @@ import java.io.IOException;
import java.io.InputStream;

import junit.framework.TestCase;
import org.apache.tools.ant.util.JavaEnvUtils;
import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassFile;
import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.MethodInfo;



+ 3
- 3
src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassPathLoaderTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001,2003-2004 The Apache Software Foundation
* Copyright 2001,2003-2004,2006 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.
@@ -17,11 +17,11 @@
package org.apache.tools.ant.taskdefs.optional.sitraka;

import java.util.Hashtable;
import java.io.File;

import junit.framework.TestCase;
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassPathLoader;
import org.apache.tools.ant.types.Path;

/**
* Minimal testing for the classpath loader..


+ 4
- 5
src/testcases/org/apache/tools/ant/types/AbstractFileSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -17,13 +17,12 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import java.io.File;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;

/**
* Base class for FileSetTest and DirSetTest.


+ 1
- 2
src/testcases/org/apache/tools/ant/types/AddTypeTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,7 +17,6 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;


+ 2
- 5
src/testcases/org/apache/tools/ant/types/CommandlineTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -17,12 +17,9 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import org.apache.tools.ant.BuildException;

/**
* JUnit 3 testcases for org.apache.tools.ant.CommandLine


+ 1
- 8
src/testcases/org/apache/tools/ant/types/DescriptionTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004,2006 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.
@@ -17,15 +17,8 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.*;

/**
* FilterSet testing
*


+ 3
- 4
src/testcases/org/apache/tools/ant/types/EnumeratedAttributeTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2001,2004 The Apache Software Foundation
* Copyright 2000-2001,2004,2006 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.
@@ -17,10 +17,9 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import org.apache.tools.ant.BuildException;

/**
* JUnit 3 testcases for org.apache.tools.ant.EnumeratedAttribute.


+ 3
- 7
src/testcases/org/apache/tools/ant/types/FileListTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001,2004 The Apache Software Foundation
* Copyright 2001,2004,2006 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.
@@ -17,15 +17,11 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.Project;
import java.io.File;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;

/**
* Some tests for filelist.
*/


+ 1
- 8
src/testcases/org/apache/tools/ant/types/FileSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -17,13 +17,6 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;

/**
* JUnit 3 testcases for org.apache.tools.ant.types.FileSet.


+ 6
- 9
src/testcases/org/apache/tools/ant/types/FilterSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002, 2004-2005 The Apache Software Foundation
* Copyright 2001-2002, 2004-2006 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.
@@ -17,16 +17,13 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Hashtable;

import org.apache.tools.ant.BuildFileTest;

/**
* FilterSet testing
*


+ 11
- 9
src/testcases/org/apache/tools/ant/types/MapperTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -17,17 +17,19 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.*;
import org.apache.tools.ant.BuildFileTest;
import java.util.Arrays;
import java.util.List;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import java.util.List;
import java.util.Arrays;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.ChainedMapper;
import org.apache.tools.ant.util.FileNameMapper;
import org.apache.tools.ant.util.FlatFileNameMapper;
import org.apache.tools.ant.util.GlobPatternMapper;
import org.apache.tools.ant.util.MergingMapper;

/**
* JUnit 3 testcases for org.apache.tools.ant.types.Mapper.


+ 6
- 7
src/testcases/org/apache/tools/ant/types/PathTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2004,2006 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.
@@ -17,15 +17,14 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.condition.Os;
import java.io.File;
import java.util.Locale;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import java.util.Locale;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.condition.Os;

/**
* JUnit 3 testcases for org.apache.tools.ant.types.Path


+ 4
- 5
src/testcases/org/apache/tools/ant/types/PatternSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -17,13 +17,12 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import java.io.File;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;

/**
* JUnit 3 testcases for org.apache.tools.ant.types.PatternSet.


+ 1
- 3
src/testcases/org/apache/tools/ant/types/PolyTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,11 +17,9 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.taskdefs.condition.Condition;

public class PolyTest extends BuildFileTest {



+ 1
- 5
src/testcases/org/apache/tools/ant/types/PropertySetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2005 The Apache Software Foundation
* Copyright 2005-2006 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.
@@ -17,11 +17,7 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.taskdefs.condition.Condition;

public class PropertySetTest extends BuildFileTest {



+ 6
- 9
src/testcases/org/apache/tools/ant/types/ResourceOutputTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2005 The Apache Software Foundation
* Copyright 2005-2006 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.
@@ -19,20 +19,17 @@ package org.apache.tools.ant.types;

import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.UnknownServiceException;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Zip;
import org.apache.tools.ant.types.Resource;
import org.apache.tools.ant.types.resources.ImmutableResourceException;
import org.apache.tools.ant.types.resources.PropertyResource;
import org.apache.tools.ant.types.resources.StringResource;
import org.apache.tools.ant.types.resources.URLResource;
import org.apache.tools.ant.types.resources.ZipResource;
import org.apache.tools.ant.types.resources.FileResource;
import org.apache.tools.ant.types.resources.StringResource;
import org.apache.tools.ant.types.resources.PropertyResource;
import org.apache.tools.ant.types.resources.ImmutableResourceException;
import org.apache.tools.ant.util.FileUtils;
import org.apache.tools.ant.util.ResourceUtils;



+ 3
- 7
src/testcases/org/apache/tools/ant/types/TarFileSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2005 The Apache Software Foundation
* Copyright 2005-2006 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.
@@ -17,14 +17,10 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;

import org.apache.tools.ant.BuildException;

/**
* JUnit 3 testcases for org.apache.tools.ant.types.TarFileSet.
*


+ 1
- 6
src/testcases/org/apache/tools/ant/types/XMLCatalogBuildFileTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004-2005 The Apache Software Foundation
* Copyright 2001-2002,2004-2006 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.
@@ -17,13 +17,8 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

/**
* BuildFileTest testcases for org.apache.tools.ant.types.XMLCatalog
*


+ 8
- 13
src/testcases/org/apache/tools/ant/types/XMLCatalogTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2004,2006 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.
@@ -17,24 +17,19 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.DefaultLogger;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.JAXPUtils;

import junit.framework.TestCase;

import java.io.File;

import java.net.MalformedURLException;
import java.net.URL;

import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

import javax.xml.transform.Source;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.TransformerException;

import junit.framework.TestCase;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.JAXPUtils;
import org.xml.sax.InputSource;

/**
* JUnit testcases for org.apache.tools.ant.types.XMLCatalog


+ 3
- 7
src/testcases/org/apache/tools/ant/types/ZipFileSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,14 +17,10 @@

package org.apache.tools.ant.types;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;

import org.apache.tools.ant.BuildException;

/**
* JUnit 3 testcases for org.apache.tools.ant.types.ZipFileSet.
*


+ 3
- 7
src/testcases/org/apache/tools/ant/types/optional/depend/ClassFileSetTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2005 The Apache Software Foundation
* Copyright 2001-2006 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.
@@ -18,16 +18,12 @@
package org.apache.tools.ant.types.optional.depend;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Date;
import java.util.Vector;
import java.util.Enumeration;
import java.util.Hashtable;

import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.FileSet;
import org.apache.tools.ant.DirectoryScanner;

/**
* Testcase for the Classfileset optional type.


+ 5
- 6
src/testcases/org/apache/tools/ant/types/selectors/BaseSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2004,2006 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.
@@ -17,14 +17,13 @@

package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;
import java.io.File;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;

/**
* Base test case for Selectors. Provides a shared test as well as


+ 4
- 6
src/testcases/org/apache/tools/ant/types/selectors/ContainsRegexpTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,14 +17,12 @@

package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;
import java.io.File;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

import java.io.File;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;


public class ContainsRegexpTest extends TestCase {


+ 1
- 6
src/testcases/org/apache/tools/ant/types/selectors/ContainsSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2004 The Apache Software Foundation
* Copyright 2002-2004,2006 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.
@@ -19,13 +19,8 @@ package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.*;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.types.Parameter;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

/**
* Tests Contains Selectors.
*


+ 1
- 6
src/testcases/org/apache/tools/ant/types/selectors/DepthSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -19,13 +19,8 @@ package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.*;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.types.Parameter;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

/**
* Tests Depth Selectors
*


+ 1
- 6
src/testcases/org/apache/tools/ant/types/selectors/FilenameSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2004,2006 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.
@@ -19,13 +19,8 @@ package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.*;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.types.Parameter;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

/**
* Tests Filename Selectors
*


+ 13
- 12
src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2005 The Apache Software Foundation
* Copyright 2003-2006 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.
@@ -20,24 +20,25 @@ package org.apache.tools.ant.types.selectors;

// Java
import java.io.File;
import java.text.RuleBasedCollator;
import java.util.Comparator;
import java.util.Iterator;
import java.text.RuleBasedCollator;

// Ant
import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.types.Parameter;
import org.apache.tools.ant.types.Path;

// inside MockProject
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Target;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildEvent;

// The classes to test
import org.apache.tools.ant.types.selectors.modifiedselector.*;
import org.apache.tools.ant.types.Parameter;
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.selectors.modifiedselector.Algorithm;
import org.apache.tools.ant.types.selectors.modifiedselector.Cache;
import org.apache.tools.ant.types.selectors.modifiedselector.ChecksumAlgorithm;
import org.apache.tools.ant.types.selectors.modifiedselector.DigestAlgorithm;
import org.apache.tools.ant.types.selectors.modifiedselector.EqualComparator;
import org.apache.tools.ant.types.selectors.modifiedselector.HashvalueAlgorithm;
import org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector;
import org.apache.tools.ant.types.selectors.modifiedselector.PropertiesfileCache;
import org.apache.tools.ant.util.FileUtils;




+ 1
- 6
src/testcases/org/apache/tools/ant/types/selectors/SizeSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -19,13 +19,8 @@ package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.*;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.types.Parameter;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

/**
* Tests Size Selectors
*


+ 1
- 12
src/testcases/org/apache/tools/ant/types/selectors/TypeSelectorTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -18,17 +18,6 @@
package org.apache.tools.ant.types.selectors;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.types.Parameter;
import org.apache.tools.ant.util.JavaEnvUtils;

import java.text.SimpleDateFormat;
import java.text.ParsePosition;
import java.util.Date;

import junit.framework.TestCase;
import junit.framework.AssertionFailedError;

/**
* Tests Type Selectors.


+ 2
- 2
src/testcases/org/apache/tools/ant/util/ClasspathUtilsTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -17,9 +17,9 @@

package org.apache.tools.ant.util;

import java.io.File;
import java.io.IOException;
import java.util.Enumeration;

import junit.framework.TestCase;

import org.apache.tools.ant.BuildException;


+ 3
- 3
src/testcases/org/apache/tools/ant/util/DOMElementWriterTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2005 The Apache Software Foundation
* Copyright 2000-2006 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.
@@ -19,9 +19,9 @@ package org.apache.tools.ant.util;

import java.io.IOException;
import java.io.StringWriter;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.w3c.dom.Document;
import org.w3c.dom.Element;



+ 1
- 2
src/testcases/org/apache/tools/ant/util/DateUtilsTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004,2006 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.
@@ -16,7 +16,6 @@
*/
package org.apache.tools.ant.util;

import java.util.Date;
import java.util.Calendar;
import java.util.TimeZone;



+ 1
- 3
src/testcases/org/apache/tools/ant/util/GlobPatternMapperTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000,2004 The Apache Software Foundation
* Copyright 2000,2004,2006 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.
@@ -17,9 +17,7 @@

package org.apache.tools.ant.util;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Tests for org.apache.tools.ant.util;GlobPatternMapper.


+ 3
- 5
src/testcases/org/apache/tools/ant/util/ResourceUtilsTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004 The Apache Software Foundation
* Copyright 2003-2004,2006 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.
@@ -17,15 +17,13 @@

package org.apache.tools.ant.util;

import junit.framework.TestCase;

import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Echo;
import org.apache.tools.ant.types.Resource;
import org.apache.tools.ant.types.ResourceFactory;

import java.io.File;

import junit.framework.TestCase;

/**
* Tests for org.apache.tools.ant.util.ResourceUtils.
*/


+ 1
- 3
src/testcases/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004,2006 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.
@@ -21,8 +21,6 @@ import java.io.IOException;

import junit.framework.AssertionFailedError;

import org.apache.tools.ant.taskdefs.condition.Os;

/**
* Tests for the jakarta-regexp implementation of the RegexpMatcher interface.
*


+ 1
- 3
src/testcases/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004,2006 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.
@@ -21,8 +21,6 @@ import java.io.IOException;

import junit.framework.AssertionFailedError;

import org.apache.tools.ant.taskdefs.condition.Os;

/**
* Tests for the jakarta-regexp implementation of the Regexp interface.
*


+ 2
- 4
src/testcases/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2004,2006 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.
@@ -17,12 +17,10 @@

package org.apache.tools.ant.util.regexp;

import java.io.*;
import java.io.IOException;
import java.util.Vector;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Tests for all implementations of the RegexpMatcher interface.


+ 3
- 5
src/testcases/org/apache/tools/zip/ZipOutputStreamTest.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2004-2005 The Apache Software Foundation
* Copyright 2004-2006 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.
@@ -17,13 +17,11 @@

package org.apache.tools.zip;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import java.util.Calendar;
import java.util.Date;

import junit.framework.TestCase;

public class ZipOutputStreamTest extends TestCase {
private Date time;


Loading…
Cancel
Save