File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
fesod/src/test/java/org/apache/fesod/sheet/converter Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 2222import static org .junit .jupiter .api .Assertions .*;
2323import java .io .File ;
2424import java .util .ArrayList ;
25-
2625import org .apache .fesod .sheet .ExcelReader ;
2726import org .apache .fesod .sheet .ExcelWriter ;
2827import org .apache .fesod .sheet .FesodSheet ;
@@ -97,19 +96,15 @@ public void testWriterConverterIsolation() {
9796 public void testReaderConverterIsolation () {
9897 File testFile = TestFileUtil .createNewFile ("converter_isolation_test.xlsx" );
9998
100- FesodSheet .write (testFile , TestData .class )
101- .sheet ()
102- .doWrite (new ArrayList <>());
99+ FesodSheet .write (testFile , TestData .class ).sheet ().doWrite (new ArrayList <>());
103100
104101 ExcelReader reader1 = FesodSheet .read (testFile , TestData .class , null )
105102 .registerConverter (new ReadConverterA ())
106103 .build ();
107104
108- ExcelReader reader2 = FesodSheet .read (testFile , TestData .class , null )
109- .build ();
105+ ExcelReader reader2 = FesodSheet .read (testFile , TestData .class , null ).build ();
110106
111- boolean leaked = reader2 .analysisContext ().currentReadHolder ()
112- .converterMap ().values ().stream ()
107+ boolean leaked = reader2 .analysisContext ().currentReadHolder ().converterMap ().values ().stream ()
113108 .anyMatch (c -> c instanceof ReadConverterA );
114109
115110 reader1 .finish ();
You can’t perform that action at this time.
0 commit comments