You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/03/10 12:12:46 UTC

[GitHub] [flink] zentol commented on a change in pull request #19039: [FLINK-26582][table] Convert table modules assertions to AssertJ

zentol commented on a change in pull request #19039:
URL: https://github.com/apache/flink/pull/19039#discussion_r823654160



##########
File path: flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/CliTableauResultViewTest.java
##########
@@ -312,13 +310,13 @@ public void testFailedBatchResult() {
 
         try {
             view.displayResults();
-            Assert.fail("Shouldn't get here");
+            fail("Shouldn't get here");
         } catch (SqlExecutionException e) {
-            Assert.assertEquals("query failed", e.getMessage());
+            assertThat(e.getMessage()).isEqualTo("query failed");

Review comment:
       ```suggestion
               assertThat(e).hasMessage("query failed");
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org