poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1751178 - in /poi/trunk/src/testcases/org/apache/poi/hssf/dev: TestBiffViewer.java TestReSave.java
Date Sun, 03 Jul 2016 22:59:41 GMT
Author: onealj
Date: Sun Jul  3 22:59:41 2016
New Revision: 1751178

URL: http://svn.apache.org/viewvc?rev=1751178&view=rev
Log:
uncomment ignored unit tests so they at least compile

Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java
    poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestReSave.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=1751178&r1=1751177&r2=1751178&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 Sun Jul  3 22:59:41
2016
@@ -23,11 +23,14 @@ import java.io.OutputStreamWriter;
 import java.io.PrintWriter;
 
 import org.apache.poi.EncryptedDocumentException;
+import org.apache.poi.POIDataSamples;
 import org.apache.poi.hssf.OldExcelFormatException;
 import org.apache.poi.hssf.record.RecordInputStream;
 import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;
 import org.apache.poi.util.LocaleUtil;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
 
 public class TestBiffViewer extends BaseXLSIteratingTest {
     @BeforeClass
@@ -66,11 +69,11 @@ public class TestBiffViewer extends Base
             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"));
+    }
 }

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestReSave.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestReSave.java?rev=1751178&r1=1751177&r2=1751178&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestReSave.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/dev/TestReSave.java Sun Jul  3 22:59:41 2016
@@ -29,6 +29,8 @@ import org.apache.poi.hssf.OldExcelForma
 import org.apache.poi.hssf.record.RecordInputStream;
 import org.apache.poi.util.LocaleUtil;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
 
 public class TestReSave extends BaseXLSIteratingTest {
     @BeforeClass
@@ -81,18 +83,18 @@ public class TestReSave extends BaseXLSI
 		}
 	}
 
-	//Only used for local testing
-	//@Test
-	public void testOneFile() throws Exception {
+    @Ignore("Only used for local testing")
+    @Test
+    public void testOneFile() throws Exception {
         String dataDirName = System.getProperty(POIDataSamples.TEST_PROPERTY);
         if(dataDirName == null) {
             dataDirName = "test-data";
         }
 
-		List<String> failed = new ArrayList<String>();
-		runOneFile(new File(dataDirName + "/spreadsheet", "49931.xls"));
+        List<String> failed = new ArrayList<String>();
+        runOneFile(new File(dataDirName + "/spreadsheet", "49931.xls"));
 
-		assertTrue("Expected to have no failed except the ones excluded, but had: " + failed, 
-				failed.isEmpty());
-	}
+        assertTrue("Expected to have no failed except the ones excluded, but had: " + failed,

+                failed.isEmpty());
+    }
 }



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


Mime
View raw message