You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2021/10/01 18:30:00 UTC

[jira] [Created] (NIFI-9267) Replace TestServer with OkHttp MockWebServer

David Handermann created NIFI-9267:
--------------------------------------

             Summary: Replace TestServer with OkHttp MockWebServer
                 Key: NIFI-9267
                 URL: https://issues.apache.org/jira/browse/NIFI-9267
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework, Extensions
            Reporter: David Handermann
            Assignee: David Handermann


The {{nifi-standard-web-test-utils}} module includes a {{TestServer}} class based on Jetty to support testing various components that require access to an HTTP server. The OkHttp MockWebServer library provides a straightforward API for creating an HTTP with expected responses. InvokeHTTP unit tests already leverage MockWebServer, and remaining references to {{TestServer}} should be replaced with OkHttp MockWebServer.



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