ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r592846 - in /ant/core/trunk/src/tests/junit/org/apache/tools/ant: taskdefs/optional/junit/JUnitTaskTest.java types/selectors/ModifiedSelectorTest.java
Date Wed, 07 Nov 2007 18:26:40 GMT
Author: jhm
Date: Wed Nov  7 10:26:39 2007
New Revision: 592846

URL: http://svn.apache.org/viewvc?rev=592846&view=rev
Log:
- remove some unused (internal) variables
- remove unused imports

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java?rev=592846&r1=592845&r2=592846&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
Wed Nov  7 10:26:39 2007
@@ -19,20 +19,10 @@
 
 import java.io.BufferedReader;
 import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
 import java.io.FileReader;
 import java.io.IOException;
-import java.io.PrintWriter;
-import java.text.SimpleDateFormat;
-import java.util.Date;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.apache.tools.ant.BuildEvent;
 import org.apache.tools.ant.BuildFileTest;
-import org.apache.tools.ant.BuildListener;
 
 public class JUnitTaskTest extends BuildFileTest {
 

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java?rev=592846&r1=592845&r2=592846&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
Wed Nov  7 10:26:39 2007
@@ -152,7 +152,7 @@
 
     public void testIllegalCustomAlgorithm() {
         try {
-            String algo = getAlgoName("java.lang.Object");
+            getAlgoName("java.lang.Object");
             fail("Illegal classname used.");
         } catch (Exception e) {
             assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException);
@@ -167,7 +167,7 @@
     public void testNonExistentCustomAlgorithm() {
         boolean noExcThrown = false;
         try {
-            String algo = getAlgoName("non.existent.custom.Algorithm");
+            getAlgoName("non.existent.custom.Algorithm");
             noExcThrown = true;
         } catch (Exception e) {
             if (noExcThrown) {
@@ -367,8 +367,7 @@
 
             s.setUpdate(true);
 
-            // does the selection
-            String results = selectionString(s);
+            selectionString(s);
 
             // evaluate correctness
             assertTrue("Cache file is not created.", cachefile.exists());
@@ -404,8 +403,7 @@
             s.addParam(createParam("cache.cachefile", cachefile.getAbsolutePath()));
             s.addParam(createParam("cache", "propertyfile"));
 
-            // does the selection
-            String results = selectionString(s);
+            selectionString(s);
 
             // evaluate correctness
             assertTrue("Cache file is not created.", cachefile.exists());



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


Mime
View raw message