git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751178 13f79535-47bb-0310-9956-ffa450edef68tags/REL_3_15_BETA3
@@ -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 BaseXLSIteratingTest { | |||
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")); | |||
} | |||
} |
@@ -29,6 +29,8 @@ import org.apache.poi.hssf.OldExcelFormatException; | |||
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 BaseXLSIteratingTest { | |||
} | |||
} | |||
//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()); | |||
} | |||
} |