瀏覽代碼

tests: Cleaned up IOHelperTest. Removed leftover debug code.

eho 7 年之前
父節點
當前提交
cb0429c00a
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/test/java/com/owncloud/android/utils/IOHelperTest.java

+ 0 - 3
src/test/java/com/owncloud/android/utils/IOHelperTest.java

@@ -6,7 +6,6 @@ import org.junit.Test;
 
 import java.io.FileOutputStream;
 import java.io.IOException;
-import java.io.StringWriter;
 import java.nio.file.Files;
 import java.nio.file.Paths;
 
@@ -24,11 +23,9 @@ public class IOHelperTest {
     public void testInputStreamIsClosed() throws Exception {
         // Define FileOutputStream for testing.
         FileOutputStream mOutputStream = null;
-        StringWriter test = null;
         try {
             // init object
             mOutputStream = new FileOutputStream(outputFileName);
-            test = new StringWriter();
 
         } catch (Exception ex) {
             ex.printStackTrace();