File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
fluss-flink/fluss-flink-common/src/test/java/org/apache/fluss/flink/sink/writer Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,16 @@ void testFlussSchemaChange() throws Exception {
147147 new MockSinkWriterContext ()))
148148 .rootCause ()
149149 .isExactlyInstanceOf (ClassCastException .class )
150- .hasMessageContaining (
151- "class org.apache.flink.table.data.binary.BinaryStringData cannot be cast to class java.lang.Integer" );
150+ .satisfiesAnyOf (
151+ // JDK8 format: no "class" prefix.
152+ e ->
153+ assertThat (e .getMessage ())
154+ .contains (
155+ "org.apache.flink.table.data.binary.BinaryStringData cannot be cast to java.lang.Integer" ),
156+ e ->
157+ assertThat (e .getMessage ())
158+ .contains (
159+ "class org.apache.flink.table.data.binary.BinaryStringData cannot be cast to class java.lang.Integer" ));
152160 writer .flush (false );
153161 }
154162 }
You can’t perform that action at this time.
0 commit comments