SetIdentifier.java revision 829
3153N/A/*
3153N/A * Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
3153N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3153N/A *
3153N/A * This code is free software; you can redistribute it and/or modify it
3153N/A * under the terms of the GNU General Public License version 2 only, as
3153N/A * published by the Free Software Foundation. Sun designates this
3153N/A * particular file as subject to the "Classpath" exception as provided
3153N/A * by Sun in the LICENSE file that accompanied this code.
3153N/A *
3153N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3153N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3153N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3153N/A * version 2 for more details (a copy is included in the LICENSE file that
3153N/A * accompanied this code).
3153N/A *
3153N/A * You should have received a copy of the GNU General Public License version
3153N/A * 2 along with this work; if not, write to the Free Software Foundation,
3153N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3153N/A *
5012N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
5012N/A * CA 95054 USA or visit www.sun.com if you need additional information or
5012N/A * have any questions.
5012N/A */
5012N/A
5012N/A/* @test
3153N/A @summary Test ModelByteBufferWavetable setIdentifier(ModelIdentifier) method */
5012N/A
3516N/Aimport java.io.File;
5012N/Aimport java.io.FileOutputStream;
3516N/Aimport java.io.IOException;
5012N/A
5012N/Aimport javax.sound.sampled.*;
3153N/A
5012N/Aimport com.sun.media.sound.*;
5012N/A
3153N/Apublic class SetIdentifier {
3516N/A
3516N/A public static void main(String[] args) throws Exception {
5012N/A ModelDestination dest = new ModelDestination();
5012N/A dest.setIdentifier(ModelDestination.DESTINATION_EG1_ATTACK);
5012N/A if(dest.getIdentifier() != ModelDestination.DESTINATION_EG1_ATTACK)
5012N/A throw new RuntimeException("dest.getIdentifier() is not equals ModelDestination.DESTINATION_EG1_ATTACK!");
5012N/A }
5012N/A}
5012N/A