@Test public void testBuildDetectorWithFilters() { val factoryUnderTest = new ConstantThresholdDetectorFactoryProvider(); val document = readDocument("constant-threshold-9amTo5pm-filter"); val detector = factoryUnderTest.buildDetector(document); assertNotNull(detector); assertSame(ConstantThresholdDetector.class, detector.getClass()); assertEquals("42d242d2-42d2-42d2-42d2-42d242d242d2", detector.getUuid().toString()); }
@Override public ConstantThresholdDetector buildDetector(DetectorDocument document) { notNull(document, "document can't be null"); val params = parseParams(document); return new ConstantThresholdDetector(document.getUuid(), params, document.isTrusted()); }
ConstantThresholdDetectorFactoryProvider implements DetectorFactoryProvider<ConstantThresholdDetector> { @Override public ConstantThresholdDetector buildDetector(DetectorDocument document) { notNull(document, "document can't be null"); val params = parseParams(document); return new ConstantThresholdDetector(document.getUuid(), params, document.isTrusted()); } }
ConstantThresholdDetectorFactoryProvider implements DetectorFactoryProvider<ConstantThresholdDetector> { @Override public ConstantThresholdDetector buildDetector(DetectorDocument document) { notNull(document, "document can't be null"); val params = parseParams(document); return new ConstantThresholdDetector(document.getUuid(), params, document.isTrusted()); }  }
ConstantThresholdDetectorFactoryProvider implements DetectorFactoryProvider<ConstantThresholdDetector> { @Override public ConstantThresholdDetector buildDetector(DetectorDocument document) { notNull(document, "document can't be null"); val params = parseParams(document); return new ConstantThresholdDetector(document.getUuid(), params, document.isTrusted()); }  @Override ConstantThresholdDetector buildDetector(DetectorDocument document); }
ConstantThresholdDetectorFactoryProvider implements DetectorFactoryProvider<ConstantThresholdDetector> { @Override public ConstantThresholdDetector buildDetector(DetectorDocument document) { notNull(document, "document can't be null"); val params = parseParams(document); return new ConstantThresholdDetector(document.getUuid(), params, document.isTrusted()); }  @Override ConstantThresholdDetector buildDetector(DetectorDocument document);  }