mirror of https://github.com/apache/nifi.git
NIFI-12871 Upgraded Commons Compress from 1.25.0 to 1.26.1
- Adjusted Excel Record Reader test failure to use OpenXML Exception instead of message matching Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #8488.
This commit is contained in:
parent
63cc0520dc
commit
90c7dba34f
|
@ -25,6 +25,7 @@ import org.apache.nifi.serialization.record.Record;
|
|||
import org.apache.nifi.serialization.record.RecordField;
|
||||
import org.apache.nifi.serialization.record.RecordFieldType;
|
||||
import org.apache.nifi.serialization.record.RecordSchema;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
|
@ -59,7 +60,8 @@ public class TestExcelRecordReader {
|
|||
.build();
|
||||
|
||||
MalformedRecordException mre = assertThrows(MalformedRecordException.class, () -> new ExcelRecordReader(configuration, getInputStream("notExcel.txt"), logger));
|
||||
assertTrue(ExceptionUtils.getStackTrace(mre).contains("this is not a valid OOXML"));
|
||||
final Throwable cause = mre.getCause();
|
||||
assertInstanceOf(OpenXML4JRuntimeException.class, cause);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -117,7 +117,7 @@
|
|||
<okio.version>3.8.0</okio.version>
|
||||
<org.apache.commons.cli.version>1.6.0</org.apache.commons.cli.version>
|
||||
<org.apache.commons.codec.version>1.16.1</org.apache.commons.codec.version>
|
||||
<org.apache.commons.compress.version>1.25.0</org.apache.commons.compress.version>
|
||||
<org.apache.commons.compress.version>1.26.1</org.apache.commons.compress.version>
|
||||
<org.apache.commons.lang3.version>3.14.0</org.apache.commons.lang3.version>
|
||||
<org.apache.commons.net.version>3.10.0</org.apache.commons.net.version>
|
||||
<org.apache.commons.io.version>2.15.1</org.apache.commons.io.version>
|
||||
|
|
Loading…
Reference in New Issue