@Test(expected = NullPointerException.class) public void nullMetricDataNotAllowed() { executorUnderTest.doDetection(detectorContainer, null); }
@Override public DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData) { val detectionFilterChain = new DetectionFilterChain(detectorContainer); val request = new DetectorRequest(metricData); val response = new DetectorResponse(); detectionFilterChain.doFilter(request, response); return response.getDetectorResult(); }
DetectorExecutorImpl implements DetectorExecutor { @Override public DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData) { val detectionFilterChain = new DetectionFilterChain(detectorContainer); val request = new DetectorRequest(metricData); val response = new DetectorResponse(); detectionFilterChain.doFilter(request, response); return response.getDetectorResult(); } }
DetectorExecutorImpl implements DetectorExecutor { @Override public DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData) { val detectionFilterChain = new DetectionFilterChain(detectorContainer); val request = new DetectorRequest(metricData); val response = new DetectorResponse(); detectionFilterChain.doFilter(request, response); return response.getDetectorResult(); }  }
DetectorExecutorImpl implements DetectorExecutor { @Override public DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData) { val detectionFilterChain = new DetectionFilterChain(detectorContainer); val request = new DetectorRequest(metricData); val response = new DetectorResponse(); detectionFilterChain.doFilter(request, response); return response.getDetectorResult(); }  @Override DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData); }
DetectorExecutorImpl implements DetectorExecutor { @Override public DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData) { val detectionFilterChain = new DetectionFilterChain(detectorContainer); val request = new DetectorRequest(metricData); val response = new DetectorResponse(); detectionFilterChain.doFilter(request, response); return response.getDetectorResult(); }  @Override DetectorResult doDetection(DetectorContainer detectorContainer, @NonNull MetricData metricData);  }