test_class.declarator: mockGameContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private IGameContext mockGameContext;
test_class.type: IGameContext
test_class.var_name: mockGameContext
test_class.declarator: mockConfiguration
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Configuration mockConfiguration;
test_class.type: Configuration
test_class.var_name: mockConfiguration
test_class.declarator: mockProvider
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private GamePanelDimensionProvider mockProvider;
test_class.type: GamePanelDimensionProvider
test_class.var_name: mockProvider
test_class.declarator: mockBackgroundStyle
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BackgroundStyle mockBackgroundStyle;
test_class.type: BackgroundStyle
test_class.var_name: mockBackgroundStyle
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: children = FXCollections.observableArrayList()
test_class.modifier: private
test_class.original_string: private ObservableList<Node> children = FXCollections.observableArrayList();
test_class.type: ObservableList<Node>
test_class.var_name: children
test_class.declarator: sep = File.separator
test_class.modifier: private final
test_class.original_string: private final String sep = File.separator;
test_class.type: String
test_class.var_name: sep
test_class.declarator: localDataFolder =
          System.getProperty("user.dir") + sep
              + "src" + sep
              + "test" + sep
              + "resources" + sep
test_class.modifier: private final
test_class.original_string: private final String localDataFolder =
          System.getProperty("user.dir") + sep
              + "src" + sep
              + "test" + sep
              + "resources" + sep;
test_class.type: String
test_class.var_name: localDataFolder
test_class.file: gazeplay-games/src/test/java/net/gazeplay/games/divisor/DivisorTest.java
test_class.identifier: DivisorTest
test_case.body: @Test
      void shouldLaunchCustom() {
          new MockUp<Utils>() {
              @mockit.Mock
              public File getImagesSubdirectory(String dir) {
                  return new File(localDataFolder, "images/" + dir);
              }
          };
  
          Divisor divisor = new Divisor(mockGameContext, mockStats, false);
  
          divisor.launch();
  
          assertEquals(1, children.size());
  
          Target target = (Target) children.get(0);
          assertTrue(target.getImgLib().pickRandomImage().getUrl().contains("biscuit"));
      }
test_case.class_method_signature: DivisorTest.shouldLaunchCustom()
test_case.full_signature: @Test void shouldLaunchCustom()
test_case.identifier: shouldLaunchCustom
test_case.invocations: launch assertEquals size get assertTrue contains getUrl pickRandomImage getImgLib
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldLaunchCustom()
focal_class.declarator: gameContext
focal_class.modifier: private final
focal_class.original_string: private final IGameContext gameContext;
focal_class.type: IGameContext
focal_class.var_name: gameContext
focal_class.declarator: stats
focal_class.modifier: private final
focal_class.original_string: private final Stats stats;
focal_class.type: Stats
focal_class.var_name: stats
focal_class.declarator: isRabbit
focal_class.modifier: private final
focal_class.original_string: private final boolean isRabbit;
focal_class.type: boolean
focal_class.var_name: isRabbit
focal_class.file: gazeplay-games/src/main/java/net/gazeplay/games/divisor/Divisor.java
focal_class.identifier: Divisor
focal_class.interfaces: implements GameLifeCycle
focal_class.class_method_signature: Divisor.Divisor(final IGameContext gameContext, final Stats stats, final boolean isRabbit)
focal_class.full_signature: public  Divisor(final IGameContext gameContext, final Stats stats, final boolean isRabbit)
focal_class.identifier: Divisor
focal_class.modifiers: public
focal_class.parameters: (final IGameContext gameContext, final Stats stats, final boolean isRabbit)
focal_class.signature:  Divisor(final IGameContext gameContext, final Stats stats, final boolean isRabbit)
focal_class.class_method_signature: Divisor.launch()
focal_class.full_signature: @Override public void launch()
focal_class.identifier: launch
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void launch()
focal_class.class_method_signature: Divisor.initBackground()
focal_class.full_signature: private void initBackground()
focal_class.identifier: initBackground
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initBackground()
focal_class.class_method_signature: Divisor.restart()
focal_class.full_signature: public void restart()
focal_class.identifier: restart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void restart()
focal_class.class_method_signature: Divisor.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_method.body: @Override
      public void launch() {
          gameContext.setLimiterAvailable();
          final Target target;
          final ImageLibrary imageLibrary;
  
  
          if (isRabbit) {
              imageLibrary = ImageUtils.createCustomizedImageLibrary(null, "divisor/rabbit/images");
              initBackground();
              gameContext.resetBordersToFront();
          } else {
              imageLibrary = ImageUtils.createImageLibrary(Utils.getImagesSubdirectory("portraits"));
          }
  
          this.stats.notifyNewRoundReady();
          gameContext.getGazeDeviceManager().addStats(stats);
          stats.incrementNumberOfGoalsToReach(15);
  
           target = new Target(gameContext, stats, imageLibrary, 0,System.currentTimeMillis(), this,
              this.gameContext.getRandomPositionGenerator().newRandomPosition(100), isRabbit);
  
          gameContext.getChildren().add(target);
          gameContext.firstStart();
      }
focal_method.class_method_signature: Divisor.launch()
focal_method.full_signature: @Override public void launch()
focal_method.identifier: launch
focal_method.invocations: setLimiterAvailable createCustomizedImageLibrary initBackground resetBordersToFront createImageLibrary getImagesSubdirectory notifyNewRoundReady addStats getGazeDeviceManager incrementNumberOfGoalsToReach currentTimeMillis newRandomPosition getRandomPositionGenerator add getChildren firstStart
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void launch()