uncomment ignored unit tests so they at least compile

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751178 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-07-03 22:59:41 +00:00
parent e3f4061bc8
commit 089f54737d
2 changed files with 20 additions and 15 deletions

View File

@ -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"));
}
}

View File

@ -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());
}
}