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