@Test public void getTags () { StatsDClient client = Mockito.mock(StatsDClient.class); DataDogNotification notif = new DataDogNotification(client); notif.logNotification(chaosExperimentEvent); ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class); verify(client, times(1)).recordEvent(ArgumentMatchers.any(), captor.capture()); List<String> actualTags = captor.getAllValues(); actualTags.sort(Comparator.naturalOrder()); assertThat(actualTags, is(expectedTagsEvent)); }
@Override public void logNotification (ChaosNotification notification) { DataDogEvent dataDogEvent = new DataDogEvent(); send(dataDogEvent.buildFromNotification(notification), dataDogEvent.generateTags(notification)); }
DataDogNotification implements NotificationMethods { @Override public void logNotification (ChaosNotification notification) { DataDogEvent dataDogEvent = new DataDogEvent(); send(dataDogEvent.buildFromNotification(notification), dataDogEvent.generateTags(notification)); } }
DataDogNotification implements NotificationMethods { @Override public void logNotification (ChaosNotification notification) { DataDogEvent dataDogEvent = new DataDogEvent(); send(dataDogEvent.buildFromNotification(notification), dataDogEvent.generateTags(notification)); } DataDogNotification();   DataDogNotification(StatsDClient statsDClient); }
DataDogNotification implements NotificationMethods { @Override public void logNotification (ChaosNotification notification) { DataDogEvent dataDogEvent = new DataDogEvent(); send(dataDogEvent.buildFromNotification(notification), dataDogEvent.generateTags(notification)); } DataDogNotification();   DataDogNotification(StatsDClient statsDClient); @Override void logNotification(ChaosNotification notification); }
DataDogNotification implements NotificationMethods { @Override public void logNotification (ChaosNotification notification) { DataDogEvent dataDogEvent = new DataDogEvent(); send(dataDogEvent.buildFromNotification(notification), dataDogEvent.generateTags(notification)); } DataDogNotification();   DataDogNotification(StatsDClient statsDClient); @Override void logNotification(ChaosNotification notification);  }