You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/01/07 20:58:27 UTC
svn commit: r896987 - in
/commons/proper/io/trunk/src/test/org/apache/commons/io:
EndianUtilsTest.java FileCleanerTestCase.java
FileCleaningTrackerTestCase.java FileSystemUtilsTestCase.java
FileUtilsWaitForTestCase.java IOCaseTestCase.java
Author: sebb
Date: Thu Jan 7 19:58:26 2010
New Revision: 896987
URL: http://svn.apache.org/viewvc?rev=896987&view=rev
Log:
Remove throws clauses that don't apply
Modified:
commons/proper/io/trunk/src/test/org/apache/commons/io/EndianUtilsTest.java
commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleanerTestCase.java
commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java
commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
commons/proper/io/trunk/src/test/org/apache/commons/io/FileUtilsWaitForTestCase.java
commons/proper/io/trunk/src/test/org/apache/commons/io/IOCaseTestCase.java
Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/EndianUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/EndianUtilsTest.java?rev=896987&r1=896986&r2=896987&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/EndianUtilsTest.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/EndianUtilsTest.java Thu Jan 7 19:58:26 2010
@@ -243,7 +243,7 @@
}
// tests #IO-101
- public void testSymmetryOfLong() throws IOException {
+ public void testSymmetryOfLong() {
double[] tests = new double[] {34.345, -345.5645, 545.12, 10.043, 7.123456789123};
for (int i = 0; i< tests.length ;i++) {
Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleanerTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleanerTestCase.java?rev=896987&r1=896986&r2=896987&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleanerTestCase.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleanerTestCase.java Thu Jan 7 19:58:26 2010
@@ -16,8 +16,6 @@
*/
package org.apache.commons.io;
-import java.io.IOException;
-
import junit.framework.Test;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
@@ -46,7 +44,7 @@
return new TestSuite(FileCleanerTestCase.class);
}
- public FileCleanerTestCase(String name) throws IOException {
+ public FileCleanerTestCase(String name) {
super(name);
}
}
Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java?rev=896987&r1=896986&r2=896987&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/FileCleaningTrackerTestCase.java Thu Jan 7 19:58:26 2010
@@ -17,7 +17,6 @@
package org.apache.commons.io;
import java.io.File;
-import java.io.IOException;
import java.io.RandomAccessFile;
import java.lang.ref.ReferenceQueue;
import java.util.ArrayList;
@@ -55,9 +54,8 @@
return new TestSuite(FileCleaningTrackerTestCase.class);
}
- public FileCleaningTrackerTestCase(String name) throws IOException {
+ public FileCleaningTrackerTestCase(String name) {
super(name);
-
testFile = new File(getTestDirectory(), "file-test.txt");
}
Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java?rev=896987&r1=896986&r2=896987&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/FileSystemUtilsTestCase.java Thu Jan 7 19:58:26 2010
@@ -52,7 +52,7 @@
return new TestSuite(FileSystemUtilsTestCase.class);
}
- public FileSystemUtilsTestCase(String name) throws IOException {
+ public FileSystemUtilsTestCase(String name) {
super(name);
}
Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/FileUtilsWaitForTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/FileUtilsWaitForTestCase.java?rev=896987&r1=896986&r2=896987&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/FileUtilsWaitForTestCase.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/FileUtilsWaitForTestCase.java Thu Jan 7 19:58:26 2010
@@ -17,7 +17,6 @@
package org.apache.commons.io;
import java.io.File;
-import java.io.IOException;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -43,7 +42,7 @@
return new TestSuite(FileUtilsWaitForTestCase.class);
}
- public FileUtilsWaitForTestCase(String name) throws IOException {
+ public FileUtilsWaitForTestCase(String name) {
super(name);
}
Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/IOCaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/IOCaseTestCase.java?rev=896987&r1=896986&r2=896987&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/IOCaseTestCase.java (original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/IOCaseTestCase.java Thu Jan 7 19:58:26 2010
@@ -19,7 +19,6 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
-import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
@@ -47,7 +46,7 @@
return new TestSuite(IOCaseTestCase.class);
}
- public IOCaseTestCase(String name) throws IOException {
+ public IOCaseTestCase(String name) {
super(name);
}