/**
* Copyright (c) 2009-2011 SKRATCHDOT.COM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* http://www.eclipse.org/legal/epl-v10.html
*
* Initial modeling finished using information provided by:
* http://www.sonicspot.com/guide/wavefiles.html
*
* Contributors:
* JEFF |:at:| SKRATCHDOT |:dot:| COM
*
* $Id$
*/
package com.skratchdot.riff.wav.tests;
import com.skratchdot.riff.wav.RIFFWave;
import com.skratchdot.riff.wav.WavFactory;
import junit.framework.TestCase;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>RIFF Wave</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are tested:
* <ul>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#getSize() <em>Size</em>}</li>
* </ul>
* </p>
* <p>
* The following operations are tested:
* <ul>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#getChunksByEClass(org.eclipse.emf.ecore.EClass) <em>Get Chunks By EClass</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#getFirstChunkByEClass(org.eclipse.emf.ecore.EClass) <em>Get First Chunk By EClass</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#init(com.skratchdot.riff.wav.util.ExtendedByteBuffer) <em>Init</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#toAudioFileFormat() <em>To Audio File Format</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#toAudioFormat() <em>To Audio Format</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#toAudioInputStream() <em>To Audio Input Stream</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#toByteArray() <em>To Byte Array</em>}</li>
* <li>{@link com.skratchdot.riff.wav.RIFFWave#write(java.io.File) <em>Write</em>}</li>
* </ul>
* </p>
* @generated
*/
public class RIFFWaveTest extends TestCase {
/**
* The fixture for this RIFF Wave test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected RIFFWave fixture = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(RIFFWaveTest.class);
}
/**
* Constructs a new RIFF Wave test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public RIFFWaveTest(String name) {
super(name);
}
/**
* Sets the fixture for this RIFF Wave test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void setFixture(RIFFWave fixture) {
this.fixture = fixture;
}
/**
* Returns the fixture for this RIFF Wave test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected RIFFWave getFixture() {
return fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
@Override
protected void setUp() throws Exception {
setFixture(WavFactory.eINSTANCE.createRIFFWave());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#getSize() <em>Size</em>}' feature getter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#getSize()
* @generated
*/
public void testGetSize() {
// TODO: implement this feature getter test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#getChunksByEClass(org.eclipse.emf.ecore.EClass) <em>Get Chunks By EClass</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#getChunksByEClass(org.eclipse.emf.ecore.EClass)
* @generated
*/
public void testGetChunksByEClass__EClass() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#getFirstChunkByEClass(org.eclipse.emf.ecore.EClass) <em>Get First Chunk By EClass</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#getFirstChunkByEClass(org.eclipse.emf.ecore.EClass)
* @generated
*/
public void testGetFirstChunkByEClass__EClass() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#init(com.skratchdot.riff.wav.util.ExtendedByteBuffer) <em>Init</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#init(com.skratchdot.riff.wav.util.ExtendedByteBuffer)
* @generated
*/
public void testInit__ExtendedByteBuffer() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#toAudioFileFormat() <em>To Audio File Format</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#toAudioFileFormat()
* @generated
*/
public void testToAudioFileFormat() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#toAudioFormat() <em>To Audio Format</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#toAudioFormat()
* @generated
*/
public void testToAudioFormat() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#toAudioInputStream() <em>To Audio Input Stream</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#toAudioInputStream()
* @generated
*/
public void testToAudioInputStream() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#toByteArray() <em>To Byte Array</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#toByteArray()
* @generated
*/
public void testToByteArray() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
/**
* Tests the '{@link com.skratchdot.riff.wav.RIFFWave#write(java.io.File) <em>Write</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see com.skratchdot.riff.wav.RIFFWave#write(java.io.File)
* @generated
*/
public void testWrite__File() {
// TODO: implement this operation test method
// Ensure that you remove @generated or mark it @generated NOT
fail();
}
} //RIFFWaveTest