From: Javen O'Neal Date: Tue, 29 Dec 2015 08:53:46 +0000 (+0000) Subject: make spreadsheet file names static final rather than initializing them with setUp() X-Git-Tag: REL_3_14_FINAL~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d0ee1b1c13c795bc4971104b939694299cac5c1;p=poi.git 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 --- diff --git a/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java b/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java index cafdee46cb..38ce0b20af 100644 --- a/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java +++ b/src/ooxml/testcases/org/apache/poi/ss/TestWorkbookFactory.java @@ -36,19 +36,11 @@ import org.apache.poi.openxml4j.opc.OPCPackage; import junit.framework.TestCase; public final class TestWorkbookFactory extends TestCase { - private String xls; - private String xlsx; - private String[] xls_prot; - private String[] xlsx_prot; - private String 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"; - } + private static final String xls = "SampleSS.xls"; + private static final String xlsx = "SampleSS.xlsx"; + private static final String[] xls_prot = new String[] {"password.xls", "password"}; + private static final String[] xlsx_prot = new String[]{"protected_passtika.xlsx", "tika"}; + private static final String txt = "SampleSS.txt"; public void testCreateNative() throws Exception { Workbook wb;