@Test public void click() { TitledPane titledPane = (TitledPane) getPrimaryStage().getScene().getRoot().lookup(".titled-pane"); LoggingRecorder lr = new LoggingRecorder(); Platform.runLater(() -> { RFXTitledPane rfxTitledPane = new RFXTitledPane(titledPane, null, null, lr); titledPane.setExpanded(true); rfxTitledPane.mouseButton1Pressed(null); }); List<Recording> recordings = lr.waitAndGetRecordings(1); Recording recording = recordings.get(0); AssertJUnit.assertEquals("click", recording.getCall()); }
@Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } RFXTitledPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } RFXTitledPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override String _getText(); }
RFXTitledPane extends RFXComponent { @Override protected void mouseButton1Pressed(MouseEvent me) { recorder.recordClick(this, me); } RFXTitledPane(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override String _getText(); static final Logger LOGGER; }