David Handermann created NIFI-8178:
--------------------------------------
Summary: Optimize Initialization of SSLContext in Unit Tests
Key: NIFI-8178
URL: https://issues.apache.org/jira/browse/NIFI-8178
Project: Apache NiFi
Issue Type: Improvement
Components: Tools and Build
Reporter: David Handermann
Assignee: David Handermann
Multiple unit tests use the {{StandardSSLContextService}} implementation class
in order to support TLS communication. As a result of this approach, each test
method creates and initializes a new instance of {{SSLContext}}, which causes
poor performance and intermittent timeouts.
Following the changes implemented in NIFI-8171, other unit tests should be
modified to initialize an {{SSLContext}} in a method annotated with
{{@BeforeClass}} and provide that {{SSLContext}} using a mock of the
{{SSLContextService}} interface.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)