GetMaxReceivers.java revision 2362
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * This code is free software; you can redistribute it and/or modify it
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * under the terms of the GNU General Public License version 2 only, as
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * published by the Free Software Foundation. Oracle designates this
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * particular file as subject to the "Classpath" exception as provided
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * by Oracle in the LICENSE file that accompanied this code.
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * This code is distributed in the hope that it will be useful, but WITHOUT
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * version 2 for more details (a copy is included in the LICENSE file that
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * accompanied this code).
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * You should have received a copy of the GNU General Public License version
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * 2 along with this work; if not, write to the Free Software Foundation,
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger * or visit www.oracle.com if you need additional information or have any
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger @summary Test SoftSynthesizer getMaxReceivers method */
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulingerimport javax.sound.midi.MidiUnavailableException;
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger private static void assertEquals(Object a, Object b) throws Exception
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger throw new RuntimeException("assertEquals fails!");
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger private static void assertTrue(boolean value) throws Exception
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger throw new RuntimeException("assertTrue fails!");
9050453ee182fd065e53c6abbab735081eb05294Kryštof Tulinger public static void main(String[] args) throws Exception {