make spreadsheet file names static final rather than initializing them with setUp()

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722073 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2015-12-29 08:53:46 +00:00
parent 7980a6b457
commit 5ab2c61a3f

View File

@ -36,19 +36,11 @@ import org.apache.poi.openxml4j.opc.OPCPackage;
import junit.framework.TestCase; import junit.framework.TestCase;
public final class TestWorkbookFactory extends TestCase { public final class TestWorkbookFactory extends TestCase {
private String xls; private static final String xls = "SampleSS.xls";
private String xlsx; private static final String xlsx = "SampleSS.xlsx";
private String[] xls_prot; private static final String[] xls_prot = new String[] {"password.xls", "password"};
private String[] xlsx_prot; private static final String[] xlsx_prot = new String[]{"protected_passtika.xlsx", "tika"};
private String txt; private static final String txt = "SampleSS.txt";
protected void setUp() {
xls = "SampleSS.xls";
xlsx = "SampleSS.xlsx";
xls_prot = new String[] {"password.xls", "password"};
xlsx_prot = new String[]{"protected_passtika.xlsx", "tika"};
txt = "SampleSS.txt";
}
public void testCreateNative() throws Exception { public void testCreateNative() throws Exception {
Workbook wb; Workbook wb;