test_class.file: comm/src/test/java/br/com/hole19/marvel/comm/post_office/TestNotificationCenter.java
test_class.identifier: TestNotificationCenter
test_case.body: @Test
      public void testNotifySuccess () {
          ResponseWrapper response = Mockito.mock(ResponseWrapper.class);
          Mockito.when(response.getType()).thenReturn(ResponseType.SUCCESS);
          NotificationCenter.notify(EventCatalog.e0000, response);
      }
test_case.class_method_signature: TestNotificationCenter.testNotifySuccess()
test_case.full_signature: @Test public void testNotifySuccess()
test_case.identifier: testNotifySuccess
test_case.invocations: mock thenReturn when getType notify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNotifySuccess()
focal_class.declarator: TAG = "NotificationCenter"
focal_class.modifier: public static final
focal_class.original_string: public static final String TAG = "NotificationCenter";
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: mSubEvent0000 = new HashSet<>()
focal_class.modifier: private static
focal_class.original_string: private static Set<TaskExecutor> mSubEvent0000 = new HashSet<>();
focal_class.type: Set<TaskExecutor>
focal_class.var_name: mSubEvent0000
focal_class.declarator: mSubEvent0001 = new HashSet<>()
focal_class.modifier: private static
focal_class.original_string: private static Set<TaskExecutor> mSubEvent0001 = new HashSet<>();
focal_class.type: Set<TaskExecutor>
focal_class.var_name: mSubEvent0001
focal_class.declarator: mSubEvent0002 = new HashSet<>()
focal_class.modifier: private static
focal_class.original_string: private static Set<TaskExecutor> mSubEvent0002 = new HashSet<>();
focal_class.type: Set<TaskExecutor>
focal_class.var_name: mSubEvent0002
focal_class.file: comm/src/main/java/br/com/hole19/marvel/comm/post_office/NotificationCenter.java
focal_class.identifier: NotificationCenter
focal_class.class_method_signature: NotificationCenter.notify(EventCatalog event, ResponseWrapper response)
focal_class.full_signature: public static void notify(EventCatalog event, ResponseWrapper response)
focal_class.identifier: notify
focal_class.modifiers: public static
focal_class.parameters: (EventCatalog event, ResponseWrapper response)
focal_class.return: void
focal_class.signature: void notify(EventCatalog event, ResponseWrapper response)
focal_class.class_method_signature: NotificationCenter.getSubscriberList(EventCatalog event)
focal_class.full_signature: private static Set<TaskExecutor> getSubscriberList(EventCatalog event)
focal_class.identifier: getSubscriberList
focal_class.modifiers: private static
focal_class.parameters: (EventCatalog event)
focal_class.return: Set<TaskExecutor>
focal_class.signature: Set<TaskExecutor> getSubscriberList(EventCatalog event)
focal_method.body: public static void notify(EventCatalog event, ResponseWrapper response) {
          for (TaskExecutor tasker : NotificationCenter.getSubscriberList(event)) {
              switch (response.getType()) {
                  case SUCCESS:
                      tasker.executeOnSuccessTask(response.getPayload());
                      break;
                  case ERROR:
                      tasker.executeOnErrorTask(response.getPayload());
                      break;
              }
          }
      }
focal_method.class_method_signature: NotificationCenter.notify(EventCatalog event, ResponseWrapper response)
focal_method.full_signature: public static void notify(EventCatalog event, ResponseWrapper response)
focal_method.identifier: notify
focal_method.invocations: getSubscriberList getType executeOnSuccessTask getPayload executeOnErrorTask getPayload
focal_method.modifiers: public static
focal_method.parameters: (EventCatalog event, ResponseWrapper response)
focal_method.return: void
focal_method.signature: void notify(EventCatalog event, ResponseWrapper response)