Search in sources :

Example 1 with HttpConnector

use of org.apache.nifi.minifi.c2.provider.util.HttpConnector in project nifi-minifi by apache.

the class TemplatesIteratorTest method setup.

@Before
public void setup() throws ConfigurationProviderException {
    jsonFactory = new JsonFactory();
    httpURLConnection = mock(HttpURLConnection.class);
    httpConnector = mock(HttpConnector.class);
    when(httpConnector.get(TemplatesIterator.FLOW_TEMPLATES)).thenReturn(httpURLConnection);
}
Also used : HttpConnector(org.apache.nifi.minifi.c2.provider.util.HttpConnector) HttpURLConnection(java.net.HttpURLConnection) JsonFactory(com.fasterxml.jackson.core.JsonFactory) Before(org.junit.Before)

Aggregations

JsonFactory (com.fasterxml.jackson.core.JsonFactory)1 HttpURLConnection (java.net.HttpURLConnection)1 HttpConnector (org.apache.nifi.minifi.c2.provider.util.HttpConnector)1 Before (org.junit.Before)1