test_class.declarator: alertService
test_class.modifier: private
test_class.original_string: private BasicAlertService alertService;
test_class.type: BasicAlertService
test_class.var_name: alertService
test_class.declarator: spaceEnvironment
test_class.modifier: private
test_class.original_string: private InteractiveSpacesEnvironment spaceEnvironment;
test_class.type: InteractiveSpacesEnvironment
test_class.var_name: spaceEnvironment
test_class.declarator: timeProvider
test_class.modifier: private
test_class.original_string: private SettableTimeProvider timeProvider;
test_class.type: SettableTimeProvider
test_class.var_name: timeProvider
test_class.declarator: notifier1
test_class.modifier: private
test_class.original_string: private AlertNotifier notifier1;
test_class.type: AlertNotifier
test_class.var_name: notifier1
test_class.declarator: notifier2
test_class.modifier: private
test_class.original_string: private AlertNotifier notifier2;
test_class.type: AlertNotifier
test_class.var_name: notifier2
test_class.declarator: log
test_class.modifier: private
test_class.original_string: private Log log;
test_class.type: Log
test_class.var_name: log
test_class.file: service/interactivespaces-service-alert/src/test/java/interactivespaces/service/alert/internal/BasicAlertServiceTest.java
test_class.identifier: BasicAlertServiceTest
test_case.body: @Test
    public void testFullNotify() {
      String alertType = "phideaux";
      String id = "foobar";
      String message = "it burns... it burns...";
  
      alertService.raiseAlert(alertType, id, message);
  
      Mockito.verify(notifier1, Mockito.times(1)).notify(Mockito.eq(alertType), Mockito.eq(id),
          Mockito.eq(message));
      Mockito.verify(notifier2, Mockito.times(1)).notify(Mockito.eq(alertType), Mockito.eq(id),
          Mockito.eq(message));
  
      Mockito.verify(log, Mockito.never()).error(Mockito.anyString(), Mockito.any(Throwable.class));
    }
test_case.class_method_signature: BasicAlertServiceTest.testFullNotify()
test_case.full_signature: @Test public void testFullNotify()
test_case.identifier: testFullNotify
test_case.invocations: raiseAlert notify verify times eq eq eq notify verify times eq eq eq error verify never anyString any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFullNotify()
focal_class.declarator: alertNotifiers = new CopyOnWriteArrayList<AlertNotifier>()
focal_class.modifier: private final
focal_class.original_string: private final List<AlertNotifier> alertNotifiers = new CopyOnWriteArrayList<AlertNotifier>();
focal_class.type: List<AlertNotifier>
focal_class.var_name: alertNotifiers
focal_class.file: service/interactivespaces-service-alert/src/main/java/interactivespaces/service/alert/internal/BasicAlertService.java
focal_class.identifier: BasicAlertService
focal_class.interfaces: implements AlertService
focal_class.class_method_signature: BasicAlertService.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: BasicAlertService.startup()
focal_class.full_signature: @Override public void startup()
focal_class.identifier: startup
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startup()
focal_class.class_method_signature: BasicAlertService.raiseAlert(String alertType, String id, String message)
focal_class.full_signature: @Override public void raiseAlert(String alertType, String id, String message)
focal_class.identifier: raiseAlert
focal_class.modifiers: @Override public
focal_class.parameters: (String alertType, String id, String message)
focal_class.return: void
focal_class.signature: void raiseAlert(String alertType, String id, String message)
focal_class.class_method_signature: BasicAlertService.registerAlertNotifier(AlertNotifier notifier)
focal_class.full_signature: @Override public void registerAlertNotifier(AlertNotifier notifier)
focal_class.identifier: registerAlertNotifier
focal_class.modifiers: @Override public
focal_class.parameters: (AlertNotifier notifier)
focal_class.return: void
focal_class.signature: void registerAlertNotifier(AlertNotifier notifier)
focal_class.class_method_signature: BasicAlertService.unregisterAlertNotifier(AlertNotifier notifier)
focal_class.full_signature: @Override public void unregisterAlertNotifier(AlertNotifier notifier)
focal_class.identifier: unregisterAlertNotifier
focal_class.modifiers: @Override public
focal_class.parameters: (AlertNotifier notifier)
focal_class.return: void
focal_class.signature: void unregisterAlertNotifier(AlertNotifier notifier)
focal_class.superclass: extends BaseSupportedService
focal_method.body: @Override
    public void raiseAlert(String alertType, String id, String message) {
      getSpaceEnvironment().getLog().error("Alert being raised.");
  
      for (AlertNotifier notifier : alertNotifiers) {
        try {
          notifier.notify(alertType, id, message);
        } catch (Exception e) {
          getSpaceEnvironment().getLog().error("Error notifying about alert", e);
        }
      }
    }
focal_method.class_method_signature: BasicAlertService.raiseAlert(String alertType, String id, String message)
focal_method.full_signature: @Override public void raiseAlert(String alertType, String id, String message)
focal_method.identifier: raiseAlert
focal_method.invocations: error getLog getSpaceEnvironment notify error getLog getSpaceEnvironment
focal_method.modifiers: @Override public
focal_method.parameters: (String alertType, String id, String message)
focal_method.return: void
focal_method.signature: void raiseAlert(String alertType, String id, String message)