ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r374479 - in /ant/core/trunk/src/testcases/org/apache/tools/ant: filters/DynamicFilterTest.java taskdefs/RmicTest.java types/selectors/ModifiedSelectorTest.java
Date Thu, 02 Feb 2006 19:54:05 GMT
Author: jkf
Date: Thu Feb  2 11:54:01 2006
New Revision: 374479

URL: http://svn.apache.org/viewcvs?rev=374479&view=rev
Log:
Removed trivial unused private methods 

Modified:
    ant/core/trunk/src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java
    ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicTest.java
    ant/core/trunk/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java?rev=374479&r1=374478&r2=374479&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/filters/DynamicFilterTest.java Thu Feb
 2 11:54:01 2006
@@ -49,17 +49,6 @@
     //   Helper methods
     // -----------------------------------------------------
 
-
-    private void assertStringContains(String string, String contains) {
-        assertTrue("[" + string + "] does not contain [" + contains +"]",
-                   string.indexOf(contains) > -1);
-    }
-
-    private void assertStringNotContains(String string, String contains) {
-        assertTrue("[" + string + "] does contain [" + contains +"]",
-                   string.indexOf(contains) == -1);
-    }
-
     private String getFileString(String filename)
         throws IOException
     {
@@ -72,13 +61,6 @@
             FileUtils.close(r);
         }
 
-    }
-
-    private String getFileString(String target, String filename)
-        throws IOException
-    {
-        executeTarget(target);
-        return getFileString(filename);
     }
 
     private void expectFileContains(String name, String contains)

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicTest.java?rev=374479&r1=374478&r2=374479&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/RmicTest.java Thu Feb  2 11:54:01
2006
@@ -43,19 +43,6 @@
     }
 
     /**
-     * test for a compiler class existing
-     * @param compilerClass
-     * @return
-     */
-    private boolean hasCompiler(String compilerClass) {
-        try {
-            Class.forName(compilerClass);
-            return true;
-        } catch (ClassNotFoundException cnfe) {
-            return false;
-        }
-    }
-    /**
      * Test nested compiler args.
      */
     public void testCompilerArg() {

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java?rev=374479&r1=374478&r2=374479&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
(original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
Thu Feb  2 11:54:01 2006
@@ -24,7 +24,6 @@
 import java.util.Comparator;
 import java.util.Iterator;
 
-import org.apache.tools.ant.BuildEvent;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.Target;
@@ -1016,17 +1015,6 @@
         }
         public void fireTaskFinished() {
             super.fireTaskFinished(task, null);
-        }
-        private void fireMessageLoggedEvent(BuildEvent event, String message, int priority)
{
-        }
-        private void fireMessageLoggedProject(String message) {
-            super.fireMessageLogged(this, message, Project.MSG_INFO);
-        }
-        private void fireMessageLoggedTarget(String message) {
-            super.fireMessageLogged(target, message, Project.MSG_INFO);
-        }
-        private void fireMessageLoggedTask(String message) {
-            super.fireMessageLogged(task, message, Project.MSG_INFO);
         }
     }//class-MockProject
 



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


Mime
View raw message