jaroslav@517: /** jaroslav@517: * Back 2 Browser Bytecode Translator jaroslav@517: * Copyright (C) 2012 Jaroslav Tulach jaroslav@517: * jaroslav@517: * This program is free software: you can redistribute it and/or modify jaroslav@517: * it under the terms of the GNU General Public License as published by jaroslav@517: * the Free Software Foundation, version 2 of the License. jaroslav@517: * jaroslav@517: * This program is distributed in the hope that it will be useful, jaroslav@517: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@517: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@517: * GNU General Public License for more details. jaroslav@517: * jaroslav@517: * You should have received a copy of the GNU General Public License jaroslav@517: * along with this program. Look for COPYING file in the top folder. jaroslav@517: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@517: */ jaroslav@517: package org.apidesign.bck2brwsr.tck; jaroslav@517: jaroslav@517: import org.apidesign.bck2brwsr.vmtest.Compare; jaroslav@517: import org.apidesign.bck2brwsr.vmtest.VMTest; jaroslav@517: import org.testng.annotations.Factory; jaroslav@517: jaroslav@517: /** jaroslav@517: * jaroslav@517: * @author Jaroslav Tulach jaroslav@517: */ jaroslav@592: public class InheritanceTest { jaroslav@517: jaroslav@592: @Compare public String checkFieldsIndependent() throws ClassNotFoundException { jaroslav@592: InheritanceB ib = new InheritanceB(); jaroslav@592: ib.setA("A"); jaroslav@592: ib.setB("B"); jaroslav@592: return "A: " + ib.getA() + " B: " + ib.getB(); jaroslav@517: } jaroslav@517: jaroslav@517: @Factory jaroslav@517: public static Object[] create() { jaroslav@592: return VMTest.create(InheritanceTest.class); jaroslav@517: } jaroslav@517: }