mirror of https://github.com/apache/nifi.git
NIFI-13456 Removed unused code from TestSplitExcel
This closes #9009 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
2066d6ebc5
commit
5c9fb448a4
|
@ -19,12 +19,9 @@ package org.apache.nifi.processors.excel;
|
|||
import org.apache.nifi.util.MockFlowFile;
|
||||
import org.apache.nifi.util.TestRunner;
|
||||
import org.apache.nifi.util.TestRunners;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
@ -40,16 +37,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
|||
public class TestSplitExcel {
|
||||
private TestRunner runner;
|
||||
|
||||
@BeforeAll
|
||||
static void setUpBeforeAll() throws Exception {
|
||||
final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||
try (XSSFWorkbook workbook = new XSSFWorkbook()) {
|
||||
workbook.createSheet("User Info");
|
||||
workbook.createSheet("Vehicle Info");
|
||||
workbook.write(outputStream);
|
||||
}
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
runner = TestRunners.newTestRunner(SplitExcel.class);
|
||||
|
|
Loading…
Reference in New Issue