@Test public void init() { assertNull(scenarioGridPanelProducer.scenarioSimulationContext); scenarioGridPanelProducer.init(); ScenarioSimulationContext retrieved = scenarioGridPanelProducer.scenarioSimulationContext; assertNotNull(retrieved); verify(scenarioGridPanelProducer, times(1)).initializeGrid(eq(scenarioGridLayerMock), eq(scenarioGridPanelMock), isA(ScenarioGridModel.class), eq(retrieved), eq(1), eq(0)); verify(scenarioGridPanelProducer, times(1)).initializeGrid(eq(backgroundGridLayerMock), eq(backgroundGridPanelMock), isA(BackgroundGridModel.class), eq(retrieved), eq(0), eq(0)); }
@PostConstruct public void init() { scenarioSimulationContext = new ScenarioSimulationContext(simulationGridWidget, backgroundGridWidget); initializeGrid(simulationGridLayer, simulationGridPanel, new ScenarioGridModel(false), scenarioSimulationContext, 1, 0); initializeGrid(backgroundGridLayer, backgroundGridPanel, new BackgroundGridModel(false), scenarioSimulationContext, 0, 0); }
ScenarioGridPanelProducer { @PostConstruct public void init() { scenarioSimulationContext = new ScenarioSimulationContext(simulationGridWidget, backgroundGridWidget); initializeGrid(simulationGridLayer, simulationGridPanel, new ScenarioGridModel(false), scenarioSimulationContext, 1, 0); initializeGrid(backgroundGridLayer, backgroundGridPanel, new BackgroundGridModel(false), scenarioSimulationContext, 0, 0); } }
ScenarioGridPanelProducer { @PostConstruct public void init() { scenarioSimulationContext = new ScenarioSimulationContext(simulationGridWidget, backgroundGridWidget); initializeGrid(simulationGridLayer, simulationGridPanel, new ScenarioGridModel(false), scenarioSimulationContext, 1, 0); initializeGrid(backgroundGridLayer, backgroundGridPanel, new BackgroundGridModel(false), scenarioSimulationContext, 0, 0); }  }
ScenarioGridPanelProducer { @PostConstruct public void init() { scenarioSimulationContext = new ScenarioSimulationContext(simulationGridWidget, backgroundGridWidget); initializeGrid(simulationGridLayer, simulationGridPanel, new ScenarioGridModel(false), scenarioSimulationContext, 1, 0); initializeGrid(backgroundGridLayer, backgroundGridPanel, new BackgroundGridModel(false), scenarioSimulationContext, 0, 0); }  @PostConstruct void init(); ScenarioSimulationContext getScenarioSimulationContext(); ScenarioGridPanel getSimulationGridPanel(); ScenarioGridPanel getBackgroundGridPanel(); ScenarioContextMenuRegistry getScenarioContextMenuRegistry(); ScenarioSimulationView getScenarioSimulationView(final EventBus eventBus); ScenarioGridWidget getBackgroundGridWidget(final EventBus eventBus); }
ScenarioGridPanelProducer { @PostConstruct public void init() { scenarioSimulationContext = new ScenarioSimulationContext(simulationGridWidget, backgroundGridWidget); initializeGrid(simulationGridLayer, simulationGridPanel, new ScenarioGridModel(false), scenarioSimulationContext, 1, 0); initializeGrid(backgroundGridLayer, backgroundGridPanel, new BackgroundGridModel(false), scenarioSimulationContext, 0, 0); }  @PostConstruct void init(); ScenarioSimulationContext getScenarioSimulationContext(); ScenarioGridPanel getSimulationGridPanel(); ScenarioGridPanel getBackgroundGridPanel(); ScenarioContextMenuRegistry getScenarioContextMenuRegistry(); ScenarioSimulationView getScenarioSimulationView(final EventBus eventBus); ScenarioGridWidget getBackgroundGridWidget(final EventBus eventBus);  }