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

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

public class MockRecordControl
extends AMockObject
implements javax.microedition.media.control.RecordControl


Field Summary
static MockMethod MTHD_COMMIT
           
static MockMethod MTHD_GET_CONTENT_TYPE
           
static MockMethod MTHD_RESET
           
static MockMethod MTHD_SET_RECORD_LOCATION_$_STRING
           
static MockMethod MTHD_SET_RECORD_SIZE_LIMIT_$_INT
           
static MockMethod MTHD_SET_RECORD_STREAM_$_OUTPUTSTREAM
           
static MockMethod MTHD_START_RECORD
           
static MockMethod MTHD_STOP_RECORD
           
 
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
MockRecordControl()
           
MockRecordControl(IInvocationHandler handler)
           
 
Method Summary
 void commit()
           
 java.lang.String getContentType()
           
 void reset()
           
 void setRecordLocation(java.lang.String arg0)
           
 int setRecordSizeLimit(int arg0)
           
 void setRecordStream(java.io.OutputStream arg0)
           
 void startRecord()
           
 void stopRecord()
           
 
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_COMMIT

public static final MockMethod MTHD_COMMIT

MTHD_GET_CONTENT_TYPE

public static final MockMethod MTHD_GET_CONTENT_TYPE

MTHD_RESET

public static final MockMethod MTHD_RESET

MTHD_SET_RECORD_LOCATION_$_STRING

public static final MockMethod MTHD_SET_RECORD_LOCATION_$_STRING

MTHD_SET_RECORD_SIZE_LIMIT_$_INT

public static final MockMethod MTHD_SET_RECORD_SIZE_LIMIT_$_INT

MTHD_SET_RECORD_STREAM_$_OUTPUTSTREAM

public static final MockMethod MTHD_SET_RECORD_STREAM_$_OUTPUTSTREAM

MTHD_START_RECORD

public static final MockMethod MTHD_START_RECORD

MTHD_STOP_RECORD

public static final MockMethod MTHD_STOP_RECORD
Constructor Detail

MockRecordControl

public MockRecordControl()

MockRecordControl

public MockRecordControl(IInvocationHandler handler)
Method Detail

commit

public void commit()
            throws java.io.IOException
Specified by:
commit in interface javax.microedition.media.control.RecordControl
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.microedition.media.control.RecordControl

reset

public void reset()
           throws java.io.IOException
Specified by:
reset in interface javax.microedition.media.control.RecordControl
Throws:
java.io.IOException

setRecordLocation

public void setRecordLocation(java.lang.String arg0)
                       throws java.io.IOException,
                              javax.microedition.media.MediaException
Specified by:
setRecordLocation in interface javax.microedition.media.control.RecordControl
Throws:
java.io.IOException
javax.microedition.media.MediaException

setRecordSizeLimit

public int setRecordSizeLimit(int arg0)
                       throws javax.microedition.media.MediaException
Specified by:
setRecordSizeLimit in interface javax.microedition.media.control.RecordControl
Throws:
javax.microedition.media.MediaException

setRecordStream

public void setRecordStream(java.io.OutputStream arg0)
Specified by:
setRecordStream in interface javax.microedition.media.control.RecordControl

startRecord

public void startRecord()
Specified by:
startRecord in interface javax.microedition.media.control.RecordControl

stopRecord

public void stopRecord()
Specified by:
stopRecord in interface javax.microedition.media.control.RecordControl