jaroslav@775: /** jaroslav@775: * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach jaroslav@775: * jaroslav@775: * jaroslav@775: * This program is free software: you can redistribute it and/or modify it under jaroslav@775: * the terms of the GNU General Public License as published by the Free Software jaroslav@775: * Foundation, version 2 of the License. jaroslav@775: * jaroslav@775: * This program is distributed in the hope that it will be useful, but WITHOUT jaroslav@775: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS jaroslav@775: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more jaroslav@775: * details. jaroslav@775: * jaroslav@775: * You should have received a copy of the GNU General Public License along with jaroslav@775: * this program. Look for COPYING file in the top folder. If not, see jaroslav@775: * http://opensource.org/licenses/GPL-2.0. jaroslav@775: */ jaroslav@775: package org.apidesign.vm4brwsr; jaroslav@775: jaroslav@775: import org.testng.annotations.BeforeClass; jaroslav@775: import org.testng.annotations.Test; jaroslav@775: jaroslav@775: /** jaroslav@775: * jaroslav@775: * @author Jaroslav Tulach jaroslav@775: */ jaroslav@775: public class StaticUseSubTest { jaroslav@775: private static TestVM code; jaroslav@775: jaroslav@775: @BeforeClass jaroslav@775: public static void compileTheCode() throws Exception { jaroslav@775: StringBuilder sb = new StringBuilder(); jaroslav@775: code = TestVM.compileClass(sb, "org/apidesign/vm4brwsr/StaticUseSub"); jaroslav@775: } jaroslav@775: jaroslav@775: @Test public void getInheritedStaticField() throws Exception { jaroslav@775: code.assertExec( jaroslav@775: "Obtains non-null", StaticUseSub.class, jaroslav@775: "getNonNull__Ljava_lang_String_2", jaroslav@775: "java.lang.Object" jaroslav@775: ); jaroslav@775: } jaroslav@775: }