@Test public void testGetComponentDetailsForProcessor(){ HttpServletRequest request = mock(HttpServletRequest.class); NiFiWebConfigurationContext configurationContext = mock(NiFiWebConfigurationContext.class); when(configurationContext.getComponentDetails(any(HttpServletRequestContext.class))).thenReturn(new ComponentDetails.Builder().build()); ComponentDetails componentDetails = ProcessorWebUtils.getComponentDetails(configurationContext,"1",request); assertNotNull(componentDetails); }
static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId, HttpServletRequest request){ final NiFiWebRequestContext requestContext = getRequestContext(processorId,request); return configurationContext.getComponentDetails(requestContext); }
ProcessorWebUtils { static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId, HttpServletRequest request){ final NiFiWebRequestContext requestContext = getRequestContext(processorId,request); return configurationContext.getComponentDetails(requestContext); } }
ProcessorWebUtils { static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId, HttpServletRequest request){ final NiFiWebRequestContext requestContext = getRequestContext(processorId,request); return configurationContext.getComponentDetails(requestContext); }  }
ProcessorWebUtils { static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId, HttpServletRequest request){ final NiFiWebRequestContext requestContext = getRequestContext(processorId,request); return configurationContext.getComponentDetails(requestContext); }   }
ProcessorWebUtils { static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId, HttpServletRequest request){ final NiFiWebRequestContext requestContext = getRequestContext(processorId,request); return configurationContext.getComponentDetails(requestContext); }    }