SetIdentifier.java revision 9330:8b1f1c2a400f
1200581Srdivacky/* 2200581Srdivacky * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. 3200581Srdivacky * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4200581Srdivacky * 5200581Srdivacky * This code is free software; you can redistribute it and/or modify it 6200581Srdivacky * under the terms of the GNU General Public License version 2 only, as 7200581Srdivacky * published by the Free Software Foundation. 8200581Srdivacky * 9200581Srdivacky * This code is distributed in the hope that it will be useful, but WITHOUT 10200581Srdivacky * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11200581Srdivacky * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12200581Srdivacky * version 2 for more details (a copy is included in the LICENSE file that 13200581Srdivacky * accompanied this code). 14200581Srdivacky * 15200581Srdivacky * You should have received a copy of the GNU General Public License version 16200581Srdivacky * 2 along with this work; if not, write to the Free Software Foundation, 17243830Sdim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18243830Sdim * 19200581Srdivacky * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20200581Srdivacky * or visit www.oracle.com if you need additional information or have any 21200581Srdivacky * questions. 22200581Srdivacky */ 23200581Srdivacky 24200581Srdivacky/* @test 25200581Srdivacky @summary Test ModelByteBufferWavetable setIdentifier(ModelIdentifier) method */ 26200581Srdivacky 27200581Srdivackyimport java.io.File; 28208599Srdivackyimport java.io.FileOutputStream; 29207618Srdivackyimport java.io.IOException; 30200581Srdivacky 31200581Srdivackyimport javax.sound.sampled.*; 32200581Srdivacky 33200581Srdivackyimport com.sun.media.sound.*; 34200581Srdivacky 35200581Srdivackypublic class SetIdentifier { 36208599Srdivacky 37207618Srdivacky public static void main(String[] args) throws Exception { 38207618Srdivacky ModelDestination dest = new ModelDestination(); 39200581Srdivacky dest.setIdentifier(ModelDestination.DESTINATION_EG1_ATTACK); 40200581Srdivacky if(dest.getIdentifier() != ModelDestination.DESTINATION_EG1_ATTACK) 41200581Srdivacky throw new RuntimeException("dest.getIdentifier() is not equals ModelDestination.DESTINATION_EG1_ATTACK!"); 42200581Srdivacky } 43200581Srdivacky} 44200581Srdivacky