jaroslav@733: /** jaroslav@733: * Back 2 Browser Bytecode Translator jaroslav@733: * Copyright (C) 2012 Jaroslav Tulach jaroslav@733: * jaroslav@733: * This program is free software: you can redistribute it and/or modify jaroslav@733: * it under the terms of the GNU General Public License as published by jaroslav@733: * the Free Software Foundation, version 2 of the License. jaroslav@733: * jaroslav@733: * This program is distributed in the hope that it will be useful, jaroslav@733: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@733: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@733: * GNU General Public License for more details. jaroslav@733: * jaroslav@733: * You should have received a copy of the GNU General Public License jaroslav@733: * along with this program. Look for COPYING file in the top folder. jaroslav@733: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@733: */ jaroslav@733: package org.apidesign.bck2brwsr.compact.tck; jaroslav@733: jaroslav@733: import org.apidesign.bck2brwsr.vmtest.Compare; jaroslav@733: import org.apidesign.bck2brwsr.vmtest.VMTest; jaroslav@733: import org.testng.annotations.Factory; jaroslav@733: jaroslav@733: jaroslav@733: public class JFXIssuesTest { jaroslav@733: private abstract class Application { jaroslav@733: public abstract int getID(); jaroslav@733: } jaroslav@733: jaroslav@733: private class MyApplication extends Application { jaroslav@733: jaroslav@733: @Override jaroslav@733: public int getID() { jaroslav@733: return 1; jaroslav@733: } jaroslav@733: jaroslav@733: } jaroslav@733: jaroslav@733: @Compare public boolean isClassAssignable() { jaroslav@733: return Application.class.isAssignableFrom(MyApplication.class); jaroslav@733: } jaroslav@733: jaroslav@733: @Factory public static Object[] create() { jaroslav@733: return VMTest.create(JFXIssuesTest.class); jaroslav@733: } jaroslav@733: }