@Test public void getText() { DatePicker datePicker = (DatePicker) getPrimaryStage().getScene().getRoot().lookup(".date-picker"); LoggingRecorder lr = new LoggingRecorder(); List<String> text = new ArrayList<>(); RFXDatePicker rfxDatePicker = new RFXDatePicker(datePicker, null, null, lr); Platform.runLater(() -> { datePicker.setValue(LocalDate.now()); text.add(rfxDatePicker._getText()); }); new Wait("Waiting for date picker text.") { @Override public boolean until() { return text.size() > 0; } }; AssertJUnit.assertEquals(datePicker.getConverter().toString(LocalDate.now()), text.get(0)); }
@Override public String _getText() { return getDatePickerText((DatePicker) node, ((DatePicker) node).getValue()); }
RFXDatePicker extends RFXComponent { @Override public String _getText() { return getDatePickerText((DatePicker) node, ((DatePicker) node).getValue()); } }
RFXDatePicker extends RFXComponent { @Override public String _getText() { return getDatePickerText((DatePicker) node, ((DatePicker) node).getValue()); } RFXDatePicker(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); }
RFXDatePicker extends RFXComponent { @Override public String _getText() { return getDatePickerText((DatePicker) node, ((DatePicker) node).getValue()); } RFXDatePicker(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override void focusGained(RFXComponent prev); @Override void focusLost(RFXComponent next); @Override String _getText(); }
RFXDatePicker extends RFXComponent { @Override public String _getText() { return getDatePickerText((DatePicker) node, ((DatePicker) node).getValue()); } RFXDatePicker(Node source, JSONOMapConfig omapConfig, Point2D point, IJSONRecorder recorder); @Override void focusGained(RFXComponent prev); @Override void focusLost(RFXComponent next); @Override String _getText(); static final Logger LOGGER; }