@@ -0,0 +1,2703 @@
+/*%0A * Copyright 2008-2016 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage griffon.javafx.test;%0A%0Aimport com.google.common.base.Predicate;%0Aimport javafx.stage.Window;%0Aimport org.hamcrest.Factory;%0Aimport org.hamcrest.Matcher;%0A%0Aimport javax.annotation.Nullable;%0A%0Aimport static org.testfx.matcher.base.GeneralMatchers.baseMatcher;%0A%0A/**%0A * TestFX matchers for %7B@code javafx.stage.Window%7D.%0A *%0A * @author Andres Almiray%0A * @since 2.6.0%0A */%0Apublic class WindowMatchers %7B%0A    //---------------------------------------------------------------------------------------------%0A    // STATIC METHODS.%0A    //---------------------------------------------------------------------------------------------%0A%0A    @Factory%0A    public static Matcher%3CWindow%3E isShowing() %7B%0A        return baseMatcher(%22Window is showing%22, new Predicate%3CWindow%3E() %7B%0A            @Override%0A            public boolean apply(@Nullable Window window) %7B%0A                return isShowing(window);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Factory%0A    public static Matcher%3CWindow%3E isNotShowing() %7B%0A        return baseMatcher(%22Window is not showing%22, window -%3E !isShowing(window));%0A    %7D%0A%0A    @Factory%0A    public static Matcher%3CWindow%3E isFocused() %7B%0A        return baseMatcher(%22Window is focused%22, new Predicate%3CWindow%3E() %7B%0A            @Override%0A            public boolean apply(@Nullable Window window) %7B%0A                return isFocused(window);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Factory%0A    public static Matcher%3CWindow%3E isNotFocused() %7B%0A        return baseMatcher(%22Window is not focused%22, new Predicate%3CWindow%3E() %7B%0A            @Override%0A            public boolean apply(@Nullable Window window) %7B%0A                return !isFocused(window);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    //---------------------------------------------------------------------------------------------%0A    // PRIVATE STATIC METHODS.%0A    //---------------------------------------------------------------------------------------------%0A%0A    private static boolean isShowing(Window window) %7B%0A        return window.isShowing();%0A    %7D%0A%0A    private static boolean isFocused(Window window) %7B%0A        return window.isFocused();%0A    %7D%0A%7D%0A

Add a TestFx matcher for Window types. Fixes #145