[jira] [Created] (FLINK-22080) Refactor SqlClient for better testing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-22080) Refactor SqlClient for better testing

Shang Yuanchun (Jira)
Jark Wu created FLINK-22080:
-------------------------------

             Summary: Refactor SqlClient for better testing
                 Key: FLINK-22080
                 URL: https://issues.apache.org/jira/browse/FLINK-22080
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Client
            Reporter: Jark Wu
             Fix For: 1.13.0


Currently, we added a JUnit Rule {{TerminalStreamsResource}} to replace {{System.in}} and {{System.out}} stream to get the output of SqlClient. However, this is not safe, especially used by multiple tests.

We should refactor {{SqlClient}} to expose a new testing purpose {{main}} method which can pass in custom {{InputStream}} and {{OutputStream}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)