GazeMediaPlayer extends Parent implements GameLifeCycle { public static Button createMediaButton(String text, double width, double height) { Button button = new Button(text); button.setMinWidth(width); button.setMinHeight(height); button.setPrefWidth(width); button.setPrefHeight(height); button.getStyleClass().add("gameChooserButton"); button.getStyleClass().add("gameVariation"); button.getStyleClass().add("button"); return button; } GazeMediaPlayer(final IGameContext gameContext, Stats stats); static StackPaneButton createGraphicStackPaneButton(double width, double height, @NonNull String imageURL); static StackPaneButton createSimpleStackPaneButton(double width, double height); static StackPaneButton createTextStackPaneButton(String text, double width, double height); @Override void launch(); @Override void dispose(); static Button createMediaButton(String text, double width, double height);  }
@Test void shouldCreateTextButtonWhenCallingMediaButton() { Button button = GazeMediaPlayer.createMediaButton("Test", 500, 500); Assertions.assertEquals("Test", button.getText()); }