@Test public void canPostOtherEvent() { Configuration configuration = YmlReader.readFromFile( this.getClass().getResource("/conf/config.yml").getFile(), Configuration.class); SlackAlertExtension alertExtension = new SlackAlertExtension(configuration); alertExtension.processAnEvent(eventArgs.getOtherEvent()); }
@Test public void canPostHealthRuleViolationEvent() { Configuration configuration = YmlReader.readFromFile( this.getClass().getResource("/conf/config.yml").getFile(), Configuration.class); SlackAlertExtension alertExtension = new SlackAlertExtension(configuration); alertExtension.processAnEvent( eventArgs.getHealthRuleViolationEventWithOneEvalEntityAndTriggerNoBaseline()); }