You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2016/02/27 00:32:54 UTC

svn commit: r1732580 - /poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java

Author: nick
Date: Fri Feb 26 23:32:54 2016
New Revision: 1732580

URL: http://svn.apache.org/viewvc?rev=1732580&view=rev
Log:
Fix inconsistent indents

Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java?rev=1732580&r1=1732579&r2=1732580&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java Fri Feb 26 23:32:54 2016
@@ -26,47 +26,47 @@ import org.apache.poi.poifs.filesystem.N
 import org.apache.poi.util.LocaleUtil;
 
 public class TestBiffViewer extends BaseXLSIteratingTest {
-	static {
-		// these are likely ok to fail
-		EXCLUDED.add("XRefCalc.xls"); 	// "Buffer overrun"
-		EXCLUDED.add("50833.xls"); 		// "Name is too long" when setting username
-		EXCLUDED.add("OddStyleRecord.xls");		
-		EXCLUDED.add("NoGutsRecords.xls"); 
-		EXCLUDED.add("51832.xls");	// password 
-		EXCLUDED.add("43493.xls");	// HSSFWorkbook cannot open it as well
-		EXCLUDED.add("password.xls"); 
-		EXCLUDED.add("46904.xls");
+    static {
+        // these are likely ok to fail
+        EXCLUDED.add("XRefCalc.xls"); 	// "Buffer overrun"
+        EXCLUDED.add("50833.xls"); 		// "Name is too long" when setting username
+        EXCLUDED.add("OddStyleRecord.xls");		
+        EXCLUDED.add("NoGutsRecords.xls"); 
+        EXCLUDED.add("51832.xls");	// password 
+        EXCLUDED.add("43493.xls");	// HSSFWorkbook cannot open it as well
+        EXCLUDED.add("password.xls"); 
+        EXCLUDED.add("46904.xls");
         EXCLUDED.add("59074.xls"); // Biff 5 / Excel 95
         EXCLUDED.add("35897-type4.xls"); // unsupported crypto api header 
-		EXCLUDED.add("xor-encryption-abc.xls"); // unsupported XOR-encryption
+        EXCLUDED.add("xor-encryption-abc.xls"); // unsupported XOR-encryption
         EXCLUDED.add("testEXCEL_2.xls");  // Biff 2 / Excel 2, pre-OLE2
         EXCLUDED.add("testEXCEL_3.xls");  // Biff 3 / Excel 3, pre-OLE2
         EXCLUDED.add("testEXCEL_4.xls");  // Biff 4 / Excel 4, pre-OLE2
         EXCLUDED.add("testEXCEL_5.xls");  // Biff 5 / Excel 5
         EXCLUDED.add("testEXCEL_95.xls"); // Biff 5 / Excel 95
-	}
+    }
 
-	@Override
-	void runOneFile(File fileIn) throws IOException {
-	    NPOIFSFileSystem fs  = new NPOIFSFileSystem(fileIn, true);
-	    try {
-    		InputStream is = BiffViewer.getPOIFSInputStream(fs);
-    		try {
-    			// use a NullOutputStream to not write the bytes anywhere for best runtime
-    		    PrintWriter dummy = new PrintWriter(new OutputStreamWriter(NULL_OUTPUT_STREAM, LocaleUtil.CHARSET_1252));
-    			BiffViewer.runBiffViewer(dummy, is, true, true, true, false);
-    		} finally {
-    			is.close();
-    		}
-	    } finally {
-    		fs.close();
-	    }
-	}
+    @Override
+    void runOneFile(File fileIn) throws IOException {
+        NPOIFSFileSystem fs  = new NPOIFSFileSystem(fileIn, true);
+        try {
+            InputStream is = BiffViewer.getPOIFSInputStream(fs);
+            try {
+                // use a NullOutputStream to not write the bytes anywhere for best runtime
+                PrintWriter dummy = new PrintWriter(new OutputStreamWriter(NULL_OUTPUT_STREAM, LocaleUtil.CHARSET_1252));
+                BiffViewer.runBiffViewer(dummy, is, true, true, true, false);
+            } finally {
+                is.close();
+            }
+        } finally {
+            fs.close();
+        }
+    }
 	
-//	@Test
-//	@Ignore("only used for manual tests")
-//	public void testOneFile() throws Exception {
-//	    POIDataSamples samples = POIDataSamples.getSpreadSheetInstance();
-//		runOneFile(samples.getFile("43493.xls"));
-//	}
+//  @Test
+//  @Ignore("only used for manual tests")
+//  public void testOneFile() throws Exception {
+//      POIDataSamples samples = POIDataSamples.getSpreadSheetInstance();
+//      runOneFile(samples.getFile("43493.xls"));
+//  }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org