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 shouldSetUpNullGraphicForMediaButtonWithMediaFileSetUpWithNoImagePath() {
          MediaButton mediaButton = new MediaButton(500, 500);
          MediaFile mediaFile = new MediaFile("URL", "https://github.com/GazePlay/GazePlay", "gazeplayTest", null);
          mediaButton.setMediaFile(mediaFile);
          mediaButton.setupImage();
          Assertions.assertNull(mediaButton.getButton().getGraphic());
      }
test_case.class_method_signature: MediaButtonTest.shouldSetUpNullGraphicForMediaButtonWithMediaFileSetUpWithNoImagePath()
test_case.full_signature: @Test void shouldSetUpNullGraphicForMediaButtonWithMediaFileSetUpWithNoImagePath()
test_case.identifier: shouldSetUpNullGraphicForMediaButtonWithMediaFileSetUpWithNoImagePath
test_case.invocations: setMediaFile setupImage assertNull getGraphic getButton
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldSetUpNullGraphicForMediaButtonWithMediaFileSetUpWithNoImagePath()
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 setupImage() {
          if (mediaFile != null && mediaFile.getImagepath() != null) {
              final File f = new File(mediaFile.getImagepath());
              final ImageView iv = new ImageView(new Image(f.toURI().toString()));
              iv.setPreserveRatio(true);
              iv.fitHeightProperty().bind(this.getButton().heightProperty().multiply(9.0 / 10.0));
              iv.fitWidthProperty().bind(this.getButton().widthProperty().multiply(9.0 / 10.0));
              this.getButton().setGraphic(iv);
          } else {
              this.getButton().setGraphic(null);
          }
      }
focal_method.class_method_signature: MediaButton.setupImage()
focal_method.full_signature:  void setupImage()
focal_method.identifier: setupImage
focal_method.invocations: getImagepath getImagepath toString toURI setPreserveRatio bind fitHeightProperty multiply heightProperty getButton bind fitWidthProperty multiply widthProperty getButton setGraphic getButton setGraphic getButton
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void setupImage()