com.hammingweight.hammock.mocks.microedition.media.control
Class MockMIDIControl

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.media.control.MockMIDIControl
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.media.Control, javax.microedition.media.control.MIDIControl

public class MockMIDIControl
extends AMockObject
implements javax.microedition.media.control.MIDIControl


Field Summary
static MockMethod MTHD_GET_BANK_LIST_$_BOOLEAN
           
static MockMethod MTHD_GET_CHANNEL_VOLUME_$_INT
           
static MockMethod MTHD_GET_KEY_NAME_$_INT_INT_INT
           
static MockMethod MTHD_GET_PROGRAM_$_INT
           
static MockMethod MTHD_GET_PROGRAM_LIST_$_INT
           
static MockMethod MTHD_GET_PROGRAM_NAME_$_INT_INT
           
static MockMethod MTHD_IS_BANK_QUERY_SUPPORTED
           
static MockMethod MTHD_LONG_MIDI_EVENT_$_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_SET_CHANNEL_VOLUME_$_INT_INT
           
static MockMethod MTHD_SET_PROGRAM_$_INT_INT_INT
           
static MockMethod MTHD_SHORT_MIDI_EVENT_$_INT_INT_INT
           
 
Fields inherited from interface javax.microedition.media.control.MIDIControl
CONTROL_CHANGE, NOTE_ON
 
Fields inherited from interface com.hammingweight.hammock.IHammockExceptionErrors
ARGUMENT_MATCHER_ALREADY_SET, CANT_SET_VOID_RETURN_VALUE, CLASS_IS_NOT_THROWABLE, DOES_NOT_SUBCLASS_MOCK_OBJECT, HANDLER_NOT_SET, INCORRECT_MOCK_OBJECT, INCORRECT_RETURN_CLASS, INCORRECT_THROWABLE_CLASS, METHOD_CANNOT_BE_EVALUATED, METHOD_INVOKED_OUT_OF_SEQUENCE, METHOD_INVOKED_TOO_MANY_TIMES, METHOD_INVOKED_UNEXPECTED_NUMBER_OF_TIMES, NO_RETURN_VALUE, NO_RETURN_VALUE_SET, NUM_INVOCATIONS_ALREADY_SET, RETURN_VALUE_ALREADY_SET, WRONG_ARGUMENT_CLASS, WRONG_NUMBER_OF_ARGS
 
Constructor Summary
MockMIDIControl()
           
MockMIDIControl(IInvocationHandler handler)
           
 
Method Summary
 int[] getBankList(boolean arg0)
           
 int getChannelVolume(int arg0)
           
 java.lang.String getKeyName(int arg0, int arg1, int arg2)
           
 int[] getProgram(int arg0)
           
 int[] getProgramList(int arg0)
           
 java.lang.String getProgramName(int arg0, int arg1)
           
 boolean isBankQuerySupported()
           
 int longMidiEvent(byte[] arg0, int arg1, int arg2)
           
 void setChannelVolume(int arg0, int arg1)
           
 void setProgram(int arg0, int arg1, int arg2)
           
 void shortMidiEvent(int arg0, int arg1, int arg2)
           
 
Methods inherited from class com.hammingweight.hammock.AMockObject
assertReturnNotNull, getInvocationHandler, setInvocationHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_BANK_LIST_$_BOOLEAN

public static final MockMethod MTHD_GET_BANK_LIST_$_BOOLEAN

MTHD_GET_CHANNEL_VOLUME_$_INT

public static final MockMethod MTHD_GET_CHANNEL_VOLUME_$_INT

MTHD_GET_KEY_NAME_$_INT_INT_INT

public static final MockMethod MTHD_GET_KEY_NAME_$_INT_INT_INT

MTHD_GET_PROGRAM_$_INT

public static final MockMethod MTHD_GET_PROGRAM_$_INT

MTHD_GET_PROGRAM_LIST_$_INT

public static final MockMethod MTHD_GET_PROGRAM_LIST_$_INT

MTHD_GET_PROGRAM_NAME_$_INT_INT

public static final MockMethod MTHD_GET_PROGRAM_NAME_$_INT_INT

MTHD_IS_BANK_QUERY_SUPPORTED

public static final MockMethod MTHD_IS_BANK_QUERY_SUPPORTED

MTHD_LONG_MIDI_EVENT_$_ARRAY_BYTE_INT_INT

public static final MockMethod MTHD_LONG_MIDI_EVENT_$_ARRAY_BYTE_INT_INT

MTHD_SET_CHANNEL_VOLUME_$_INT_INT

public static final MockMethod MTHD_SET_CHANNEL_VOLUME_$_INT_INT

MTHD_SET_PROGRAM_$_INT_INT_INT

public static final MockMethod MTHD_SET_PROGRAM_$_INT_INT_INT

MTHD_SHORT_MIDI_EVENT_$_INT_INT_INT

public static final MockMethod MTHD_SHORT_MIDI_EVENT_$_INT_INT_INT
Constructor Detail

MockMIDIControl

public MockMIDIControl()

MockMIDIControl

public MockMIDIControl(IInvocationHandler handler)
Method Detail

getBankList

public int[] getBankList(boolean arg0)
                  throws javax.microedition.media.MediaException
Specified by:
getBankList in interface javax.microedition.media.control.MIDIControl
Throws:
javax.microedition.media.MediaException

getChannelVolume

public int getChannelVolume(int arg0)
Specified by:
getChannelVolume in interface javax.microedition.media.control.MIDIControl

getKeyName

public java.lang.String getKeyName(int arg0,
                                   int arg1,
                                   int arg2)
                            throws javax.microedition.media.MediaException
Specified by:
getKeyName in interface javax.microedition.media.control.MIDIControl
Throws:
javax.microedition.media.MediaException

getProgram

public int[] getProgram(int arg0)
                 throws javax.microedition.media.MediaException
Specified by:
getProgram in interface javax.microedition.media.control.MIDIControl
Throws:
javax.microedition.media.MediaException

getProgramList

public int[] getProgramList(int arg0)
                     throws javax.microedition.media.MediaException
Specified by:
getProgramList in interface javax.microedition.media.control.MIDIControl
Throws:
javax.microedition.media.MediaException

getProgramName

public java.lang.String getProgramName(int arg0,
                                       int arg1)
                                throws javax.microedition.media.MediaException
Specified by:
getProgramName in interface javax.microedition.media.control.MIDIControl
Throws:
javax.microedition.media.MediaException

isBankQuerySupported

public boolean isBankQuerySupported()
Specified by:
isBankQuerySupported in interface javax.microedition.media.control.MIDIControl

longMidiEvent

public int longMidiEvent(byte[] arg0,
                         int arg1,
                         int arg2)
Specified by:
longMidiEvent in interface javax.microedition.media.control.MIDIControl

setChannelVolume

public void setChannelVolume(int arg0,
                             int arg1)
Specified by:
setChannelVolume in interface javax.microedition.media.control.MIDIControl

setProgram

public void setProgram(int arg0,
                       int arg1,
                       int arg2)
Specified by:
setProgram in interface javax.microedition.media.control.MIDIControl

shortMidiEvent

public void shortMidiEvent(int arg0,
                           int arg1,
                           int arg2)
Specified by:
shortMidiEvent in interface javax.microedition.media.control.MIDIControl