com.hammingweight.hammock.mocks.microedition.media.protocol
Class MockSourceStream

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.media.protocol.MockSourceStream
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.media.Controllable, javax.microedition.media.protocol.SourceStream

public class MockSourceStream
extends AMockObject
implements javax.microedition.media.protocol.SourceStream


Field Summary
static MockMethod MTHD_GET_CONTENT_DESCRIPTOR
           
static MockMethod MTHD_GET_CONTENT_LENGTH
           
static MockMethod MTHD_GET_CONTROL_$_STRING
           
static MockMethod MTHD_GET_CONTROLS
           
static MockMethod MTHD_GET_SEEK_TYPE
           
static MockMethod MTHD_GET_TRANSFER_SIZE
           
static MockMethod MTHD_READ_$_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_SEEK_$_LONG
           
static MockMethod MTHD_TELL
           
 
Fields inherited from interface javax.microedition.media.protocol.SourceStream
NOT_SEEKABLE, RANDOM_ACCESSIBLE, SEEKABLE_TO_START
 
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
MockSourceStream()
           
MockSourceStream(IInvocationHandler handler)
           
 
Method Summary
 javax.microedition.media.protocol.ContentDescriptor getContentDescriptor()
           
 long getContentLength()
           
 javax.microedition.media.Control getControl(java.lang.String arg0)
           
 javax.microedition.media.Control[] getControls()
           
 int getSeekType()
           
 int getTransferSize()
           
 int read(byte[] arg0, int arg1, int arg2)
           
 long seek(long arg0)
           
 long tell()
           
 
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_CONTENT_DESCRIPTOR

public static final MockMethod MTHD_GET_CONTENT_DESCRIPTOR

MTHD_GET_CONTENT_LENGTH

public static final MockMethod MTHD_GET_CONTENT_LENGTH

MTHD_GET_CONTROLS

public static final MockMethod MTHD_GET_CONTROLS

MTHD_GET_CONTROL_$_STRING

public static final MockMethod MTHD_GET_CONTROL_$_STRING

MTHD_GET_SEEK_TYPE

public static final MockMethod MTHD_GET_SEEK_TYPE

MTHD_GET_TRANSFER_SIZE

public static final MockMethod MTHD_GET_TRANSFER_SIZE

MTHD_READ_$_ARRAY_BYTE_INT_INT

public static final MockMethod MTHD_READ_$_ARRAY_BYTE_INT_INT

MTHD_SEEK_$_LONG

public static final MockMethod MTHD_SEEK_$_LONG

MTHD_TELL

public static final MockMethod MTHD_TELL
Constructor Detail

MockSourceStream

public MockSourceStream()

MockSourceStream

public MockSourceStream(IInvocationHandler handler)
Method Detail

getContentDescriptor

public javax.microedition.media.protocol.ContentDescriptor getContentDescriptor()
Specified by:
getContentDescriptor in interface javax.microedition.media.protocol.SourceStream

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface javax.microedition.media.protocol.SourceStream

getControls

public javax.microedition.media.Control[] getControls()
Specified by:
getControls in interface javax.microedition.media.Controllable

getControl

public javax.microedition.media.Control getControl(java.lang.String arg0)
Specified by:
getControl in interface javax.microedition.media.Controllable

getSeekType

public int getSeekType()
Specified by:
getSeekType in interface javax.microedition.media.protocol.SourceStream

getTransferSize

public int getTransferSize()
Specified by:
getTransferSize in interface javax.microedition.media.protocol.SourceStream

read

public int read(byte[] arg0,
                int arg1,
                int arg2)
         throws java.io.IOException
Specified by:
read in interface javax.microedition.media.protocol.SourceStream
Throws:
java.io.IOException

seek

public long seek(long arg0)
          throws java.io.IOException
Specified by:
seek in interface javax.microedition.media.protocol.SourceStream
Throws:
java.io.IOException

tell

public long tell()
Specified by:
tell in interface javax.microedition.media.protocol.SourceStream