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@517: public class AssertionTest { jaroslav@517: jaroslav@517: @Compare public Object checkAssert() throws ClassNotFoundException { jaroslav@641: try { jaroslav@641: assert false : "Is assertion status on?"; jaroslav@641: return null; jaroslav@641: } catch (AssertionError ex) { jaroslav@641: return ex.getClass().getName(); jaroslav@641: } jaroslav@517: } jaroslav@517: jaroslav@517: @Factory jaroslav@517: public static Object[] create() { jaroslav@517: return VMTest.create(AssertionTest.class); jaroslav@517: } jaroslav@517: }