test_class.declarator: progressIndicator
test_class.modifier: @Mock
test_class.original_string: @Mock
      GazeIndicator progressIndicator;
test_class.type: GazeIndicator
test_class.var_name: progressIndicator
test_class.file: gazeplay-games/src/test/java/net/gazeplay/games/mediaPlayer/MediaButtonTest.java
test_class.identifier: MediaButtonTest
test_case.body: @Test
      void shouldCreateEventsHandlersForMediaButtonWithSetUpEventMethodCall() {
          MediaButton mediaButton = new MediaButton(500, 500);
          EventHandler<ActionEvent> testEvent = e -> {
              String testString = "test";
          };
          mediaButton.setupEvent(testEvent, progressIndicator);
          Assertions.assertNotEquals(mediaButton.getClickEvent(), (MediaButton.emptyEvent));
          Assertions.assertNotEquals(mediaButton.getEnterEvent(), (MediaButton.emptyEvent));
          Assertions.assertNotEquals(mediaButton.getExitEvent(), (MediaButton.emptyEvent));
      }
test_case.class_method_signature: MediaButtonTest.shouldCreateEventsHandlersForMediaButtonWithSetUpEventMethodCall()
test_case.full_signature: @Test void shouldCreateEventsHandlersForMediaButtonWithSetUpEventMethodCall()
test_case.identifier: shouldCreateEventsHandlersForMediaButtonWithSetUpEventMethodCall
test_case.invocations: setupEvent assertNotEquals getClickEvent assertNotEquals getEnterEvent assertNotEquals getExitEvent
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCreateEventsHandlersForMediaButtonWithSetUpEventMethodCall()
focal_class.declarator: emptyEvent = e -> {
      }
focal_class.modifier: public static final
focal_class.original_string: public static final EventHandler<Event> emptyEvent = e -> {
      };
focal_class.type: EventHandler<Event>
focal_class.var_name: emptyEvent
focal_class.declarator: enterEvent = emptyEvent
focal_class.modifier: @Getter
      private
focal_class.original_string: @Getter
      private EventHandler<Event> enterEvent = emptyEvent;
focal_class.type: EventHandler<Event>
focal_class.var_name: enterEvent
focal_class.declarator: exitEvent = emptyEvent
focal_class.modifier: @Getter
      private
focal_class.original_string: @Getter
      private EventHandler<Event> exitEvent = emptyEvent;
focal_class.type: EventHandler<Event>
focal_class.var_name: exitEvent
focal_class.declarator: clickEvent = emptyEvent
focal_class.modifier: @Getter
      private
focal_class.original_string: @Getter
      private EventHandler<Event> clickEvent = emptyEvent;
focal_class.type: EventHandler<Event>
focal_class.var_name: clickEvent
focal_class.declarator: mediaFile
focal_class.modifier: @Getter
      @Setter
      private
focal_class.original_string: @Getter
      @Setter
      private MediaFile mediaFile;
focal_class.type: MediaFile
focal_class.var_name: mediaFile
focal_class.file: gazeplay-games/src/main/java/net/gazeplay/games/mediaPlayer/MediaButton.java
focal_class.identifier: MediaButton
focal_class.class_method_signature: MediaButton.MediaButton(double width, double height)
focal_class.full_signature:   MediaButton(double width, double height)
focal_class.identifier: MediaButton
focal_class.parameters: (double width, double height)
focal_class.signature:  MediaButton(double width, double height)
focal_class.class_method_signature: MediaButton.setupImage()
focal_class.full_signature:  void setupImage()
focal_class.identifier: setupImage
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setupImage()
focal_class.class_method_signature: MediaButton.setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_class.full_signature:  void setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_class.identifier: setupEvent
focal_class.parameters: (EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_class.return: void
focal_class.signature: void setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_class.superclass: extends StackPaneButton
focal_method.body: void setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator) {
          this.removeEventFilter(MouseEvent.MOUSE_CLICKED, clickEvent);
          this.removeEventFilter(GazeEvent.GAZE_ENTERED, enterEvent);
          this.removeEventFilter(GazeEvent.GAZE_EXITED, exitEvent);
  
          clickEvent = e -> {
              newMediaEvent.handle(null);
          };
  
          this.addEventFilter(MouseEvent.MOUSE_CLICKED, clickEvent);
  
          enterEvent = eventEntered -> {
              if(!this.getChildren().contains(progressIndicator)) {
                  this.getChildren().add(progressIndicator);
              }
              progressIndicator.setOnFinish(newMediaEvent);
              progressIndicator.start();
          };
  
          exitEvent = eventExited -> {
              progressIndicator.stop();
              this.getChildren().remove(progressIndicator);
          };
  
          this.addEventFilter(MouseEvent.MOUSE_ENTERED, enterEvent);
  
          this.addEventFilter(MouseEvent.MOUSE_EXITED, exitEvent);
  
          this.addEventFilter(GazeEvent.GAZE_ENTERED, enterEvent);
  
          this.addEventFilter(GazeEvent.GAZE_EXITED, exitEvent);
      }
focal_method.class_method_signature: MediaButton.setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_method.full_signature:  void setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_method.identifier: setupEvent
focal_method.invocations: removeEventFilter removeEventFilter removeEventFilter handle addEventFilter contains getChildren add getChildren setOnFinish start stop remove getChildren addEventFilter addEventFilter addEventFilter addEventFilter
focal_method.parameters: (EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)
focal_method.return: void
focal_method.signature: void setupEvent(EventHandler<ActionEvent> newMediaEvent, GazeIndicator progressIndicator)