test_class.declarator: mockGazePlay
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private GazePlay mockGazePlay;
test_class.type: GazePlay
test_class.var_name: mockGazePlay
test_class.declarator: mockTranslator
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Translator mockTranslator;
test_class.type: Translator
test_class.var_name: mockTranslator
test_class.declarator: mockStats
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Stats mockStats;
test_class.type: Stats
test_class.var_name: mockStats
test_class.declarator: mockSavedStatsInfo = new SavedStatsInfo(
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv")
      )
test_class.modifier: private
test_class.original_string: private SavedStatsInfo mockSavedStatsInfo = new SavedStatsInfo(
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv")
      );
test_class.type: SavedStatsInfo
test_class.var_name: mockSavedStatsInfo
test_class.file: gazeplay-core/src/test/java/net/gazeplay/ui/scenes/stats/StatsContextTest.java
test_class.identifier: StatsContextTest
test_case.body: @Test
      void shouldAddAreaChartOnColorBandSelected() {
          ArrayList<LinkedList<FixationPoint>> fixationPoints = new ArrayList<>(List.of(
              new LinkedList<>(List.of(
                  new FixationPoint(1234, 2345, 30, 40),
                  new FixationPoint(4567, 1234, 40, 60)
              )),
              new LinkedList<>(List.of(
                  new FixationPoint(1234, 2345, 30, 40),
                  new FixationPoint(4567, 1234, 40, 60)
              ))
          )
          );
          when(mockStats.getFixationSequence()).thenReturn(fixationPoints);
  
          Configuration mockConfig = mock(Configuration.class);
          when(mockConfig.getAreaOfInterestDisabledProperty()).thenReturn(new SimpleBooleanProperty(true));
  
          new MockUp<ActiveConfigurationContext>() {
              @mockit.Mock
              public Configuration getInstance() {
                  return mockConfig;
              }
          };
  
          BorderPane root = new BorderPane();
          new StatsContext(mockGazePlay, root, mockStats, null);
  
          BorderPane sidePane = (BorderPane) root.getCenter();
          StackPane centerStackPane = (StackPane) sidePane.getTop();
          VBox centerPane = (VBox) centerStackPane.getChildren().get(0);
          HBox controlPane = (HBox) sidePane.getBottom();
          RadioButton colorBands = (RadioButton) controlPane.getChildren().get(1);
  
          LineChart<String, Number> lineChart = (LineChart<String, Number>) centerPane.getChildren().get(2);
          assertTrue(centerPane.getChildren().contains(lineChart));
  
          colorBands.fire();
          assertFalse(centerPane.getChildren().contains(lineChart));
  
          colorBands.fire();
          assertTrue(centerPane.getChildren().contains(lineChart));
      }
test_case.class_method_signature: StatsContextTest.shouldAddAreaChartOnColorBandSelected()
test_case.full_signature: @Test void shouldAddAreaChartOnColorBandSelected()
test_case.identifier: shouldAddAreaChartOnColorBandSelected
test_case.invocations: of of of thenReturn when getFixationSequence mock thenReturn when getAreaOfInterestDisabledProperty getCenter getTop get getChildren getBottom get getChildren get getChildren assertTrue contains getChildren fire assertFalse contains getChildren fire assertTrue contains getChildren
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldAddAreaChartOnColorBandSelected()
focal_class.declarator: COLON = "Colon"
focal_class.modifier: private final
focal_class.original_string: private final String COLON = "Colon";
focal_class.type: String
focal_class.var_name: COLON
focal_class.declarator: RATIO = 0.35
focal_class.modifier: private final
focal_class.original_string: private final double RATIO = 0.35;
focal_class.type: double
focal_class.var_name: RATIO
focal_class.file: gazeplay-core/src/main/java/net/gazeplay/ui/scenes/stats/StatsContext.java
focal_class.identifier: StatsContext
focal_class.class_method_signature: StatsContext.StatsContext(GazePlay gazePlay, BorderPane root, Stats stats, CustomButton continueButton)
focal_class.full_signature:   StatsContext(GazePlay gazePlay, BorderPane root, Stats stats, CustomButton continueButton)
focal_class.identifier: StatsContext
focal_class.parameters: (GazePlay gazePlay, BorderPane root, Stats stats, CustomButton continueButton)
focal_class.signature:  StatsContext(GazePlay gazePlay, BorderPane root, Stats stats, CustomButton continueButton)
focal_class.class_method_signature: StatsContext.createDisplayButton(String buttonName, Stats stats, ImageView metrics)
focal_class.full_signature:  I18NButton createDisplayButton(String buttonName, Stats stats, ImageView metrics)
focal_class.identifier: createDisplayButton
focal_class.parameters: (String buttonName, Stats stats, ImageView metrics)
focal_class.return: I18NButton
focal_class.signature: I18NButton createDisplayButton(String buttonName, Stats stats, ImageView metrics)
focal_class.class_method_signature: StatsContext.addAllToGrid(Stats stats, Translator translator, GridPane grid, boolean alignLeft)
focal_class.full_signature:  void addAllToGrid(Stats stats, Translator translator, GridPane grid, boolean alignLeft)
focal_class.identifier: addAllToGrid
focal_class.parameters: (Stats stats, Translator translator, GridPane grid, boolean alignLeft)
focal_class.return: void
focal_class.signature: void addAllToGrid(Stats stats, Translator translator, GridPane grid, boolean alignLeft)
focal_class.class_method_signature: StatsContext.addToGrid(
          GridPane grid,
          AtomicInteger currentFormRow,
          Translator translator,
          String labelText,
          Text value,
          boolean alignLeft
      )
focal_class.full_signature: private void addToGrid(
          GridPane grid,
          AtomicInteger currentFormRow,
          Translator translator,
          String labelText,
          Text value,
          boolean alignLeft
      )
focal_class.identifier: addToGrid
focal_class.modifiers: private
focal_class.parameters: (
          GridPane grid,
          AtomicInteger currentFormRow,
          Translator translator,
          String labelText,
          Text value,
          boolean alignLeft
      )
focal_class.return: void
focal_class.signature: void addToGrid(
          GridPane grid,
          AtomicInteger currentFormRow,
          Translator translator,
          String labelText,
          Text value,
          boolean alignLeft
      )
focal_class.class_method_signature: StatsContext.createControlButtonPane(
          GazePlay gazePlay,
          Stats stats,
          Configuration config,
          RadioButton colorBands,
          CustomButton continueButton
      )
focal_class.full_signature:  HBox createControlButtonPane(
          GazePlay gazePlay,
          Stats stats,
          Configuration config,
          RadioButton colorBands,
          CustomButton continueButton
      )
focal_class.identifier: createControlButtonPane
focal_class.parameters: (
          GazePlay gazePlay,
          Stats stats,
          Configuration config,
          RadioButton colorBands,
          CustomButton continueButton
      )
focal_class.return: HBox
focal_class.signature: HBox createControlButtonPane(
          GazePlay gazePlay,
          Stats stats,
          Configuration config,
          RadioButton colorBands,
          CustomButton continueButton
      )
focal_class.class_method_signature: StatsContext.getChildren()
focal_class.full_signature: @Override public ObservableList<Node> getChildren()
focal_class.identifier: getChildren
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ObservableList<Node>
focal_class.signature: ObservableList<Node> getChildren()
focal_class.superclass: extends GraphicalContext<BorderPane>
focal_method.body: @Override
      public ObservableList<Node> getChildren() {
          return root.getChildren();
      }
focal_method.class_method_signature: StatsContext.getChildren()
focal_method.full_signature: @Override public ObservableList<Node> getChildren()
focal_method.identifier: getChildren
focal_method.invocations: getChildren
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: ObservableList<Node>
focal_method.signature: ObservableList<Node> getChildren()