java.lang.Object
de.edgesoft.edgeutils.testfx.DatePickerMatcher
public class DatePickerMatcher
extends java.lang.Object
Matcher for
DatePickers.
This class is needed until testfx provides the missing matcher.
Legal stuff
Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de
This file is part of edgeutils.
edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.
- Since:
- 0.11.0
- Version:
- 0.13.0
- Author:
- Ekkart Kleinod
-
Constructor Summary
Constructors Constructor Description DatePickerMatcher() -
Method Summary
Modifier and Type Method Description static org.hamcrest.Matcher<javafx.scene.control.DatePicker>hasDate(java.time.LocalDate theDate)Creates a matcher that matches allDatePickers that contain the given date.static org.hamcrest.Matcher<javafx.scene.control.DatePicker>isEmpty()Creates a matcher that matches allDatePickers that are empty.
-
Constructor Details
-
DatePickerMatcher
public DatePickerMatcher()
-
-
Method Details
-
isEmpty
public static org.hamcrest.Matcher<javafx.scene.control.DatePicker> isEmpty()Creates a matcher that matches allDatePickers that are empty.- Returns:
- matcher for empty date pickers
-
hasDate
public static org.hamcrest.Matcher<javafx.scene.control.DatePicker> hasDate(java.time.LocalDate theDate)Creates a matcher that matches allDatePickers that contain the given date.- Parameters:
theDate- date to check- Returns:
- matcher for date pickers with date
-