com.hammingweight.hammock.mocks.microedition.media
Class MockPlayer

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

public class MockPlayer
extends AMockObject
implements javax.microedition.media.Player


Field Summary
static MockMethod MTHD_ADD_PLAYER_LISTENER_$_PLAYERLISTENER
           
static MockMethod MTHD_CLOSE
           
static MockMethod MTHD_DEALLOCATE
           
static MockMethod MTHD_GET_CONTENT_TYPE
           
static MockMethod MTHD_GET_CONTROL_$_STRING
           
static MockMethod MTHD_GET_CONTROLS
           
static MockMethod MTHD_GET_DURATION
           
static MockMethod MTHD_GET_MEDIA_TIME
           
static MockMethod MTHD_GET_STATE
           
static MockMethod MTHD_GET_TIME_BASE
           
static MockMethod MTHD_PREFETCH
           
static MockMethod MTHD_REALIZE
           
static MockMethod MTHD_REMOVE_PLAYER_LISTENER_$_PLAYERLISTENER
           
static MockMethod MTHD_SET_LOOP_COUNT_$_INT
           
static MockMethod MTHD_SET_MEDIA_TIME_$_LONG
           
static MockMethod MTHD_SET_TIME_BASE_$_TIMEBASE
           
static MockMethod MTHD_START
           
static MockMethod MTHD_STOP
           
 
Fields inherited from interface javax.microedition.media.Player
CLOSED, PREFETCHED, REALIZED, STARTED, TIME_UNKNOWN, UNREALIZED
 
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
MockPlayer()
           
MockPlayer(IInvocationHandler handler)
           
 
Method Summary
 void addPlayerListener(javax.microedition.media.PlayerListener arg0)
           
 void close()
           
 void deallocate()
           
 java.lang.String getContentType()
           
 javax.microedition.media.Control getControl(java.lang.String arg0)
           
 javax.microedition.media.Control[] getControls()
           
 long getDuration()
           
 long getMediaTime()
           
 int getState()
           
 javax.microedition.media.TimeBase getTimeBase()
           
 void prefetch()
           
 void realize()
           
 void removePlayerListener(javax.microedition.media.PlayerListener arg0)
           
 void setLoopCount(int arg0)
           
 long setMediaTime(long arg0)
           
 void setTimeBase(javax.microedition.media.TimeBase arg0)
           
 void start()
           
 void stop()
           
 
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_ADD_PLAYER_LISTENER_$_PLAYERLISTENER

public static final MockMethod MTHD_ADD_PLAYER_LISTENER_$_PLAYERLISTENER

MTHD_CLOSE

public static final MockMethod MTHD_CLOSE

MTHD_DEALLOCATE

public static final MockMethod MTHD_DEALLOCATE

MTHD_GET_CONTENT_TYPE

public static final MockMethod MTHD_GET_CONTENT_TYPE

MTHD_GET_CONTROLS

public static final MockMethod MTHD_GET_CONTROLS

MTHD_GET_CONTROL_$_STRING

public static final MockMethod MTHD_GET_CONTROL_$_STRING

MTHD_GET_DURATION

public static final MockMethod MTHD_GET_DURATION

MTHD_GET_MEDIA_TIME

public static final MockMethod MTHD_GET_MEDIA_TIME

MTHD_GET_STATE

public static final MockMethod MTHD_GET_STATE

MTHD_GET_TIME_BASE

public static final MockMethod MTHD_GET_TIME_BASE

MTHD_PREFETCH

public static final MockMethod MTHD_PREFETCH

MTHD_REALIZE

public static final MockMethod MTHD_REALIZE

MTHD_REMOVE_PLAYER_LISTENER_$_PLAYERLISTENER

public static final MockMethod MTHD_REMOVE_PLAYER_LISTENER_$_PLAYERLISTENER

MTHD_SET_LOOP_COUNT_$_INT

public static final MockMethod MTHD_SET_LOOP_COUNT_$_INT

MTHD_SET_MEDIA_TIME_$_LONG

public static final MockMethod MTHD_SET_MEDIA_TIME_$_LONG

MTHD_SET_TIME_BASE_$_TIMEBASE

public static final MockMethod MTHD_SET_TIME_BASE_$_TIMEBASE

MTHD_START

public static final MockMethod MTHD_START

MTHD_STOP

public static final MockMethod MTHD_STOP
Constructor Detail

MockPlayer

public MockPlayer()

MockPlayer

public MockPlayer(IInvocationHandler handler)
Method Detail

addPlayerListener

public void addPlayerListener(javax.microedition.media.PlayerListener arg0)
Specified by:
addPlayerListener in interface javax.microedition.media.Player

close

public void close()
Specified by:
close in interface javax.microedition.media.Player

deallocate

public void deallocate()
Specified by:
deallocate in interface javax.microedition.media.Player

getContentType

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

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

getDuration

public long getDuration()
Specified by:
getDuration in interface javax.microedition.media.Player

getMediaTime

public long getMediaTime()
Specified by:
getMediaTime in interface javax.microedition.media.Player

getState

public int getState()
Specified by:
getState in interface javax.microedition.media.Player

getTimeBase

public javax.microedition.media.TimeBase getTimeBase()
Specified by:
getTimeBase in interface javax.microedition.media.Player

prefetch

public void prefetch()
              throws javax.microedition.media.MediaException
Specified by:
prefetch in interface javax.microedition.media.Player
Throws:
javax.microedition.media.MediaException

realize

public void realize()
             throws javax.microedition.media.MediaException
Specified by:
realize in interface javax.microedition.media.Player
Throws:
javax.microedition.media.MediaException

removePlayerListener

public void removePlayerListener(javax.microedition.media.PlayerListener arg0)
Specified by:
removePlayerListener in interface javax.microedition.media.Player

setLoopCount

public void setLoopCount(int arg0)
Specified by:
setLoopCount in interface javax.microedition.media.Player

setMediaTime

public long setMediaTime(long arg0)
                  throws javax.microedition.media.MediaException
Specified by:
setMediaTime in interface javax.microedition.media.Player
Throws:
javax.microedition.media.MediaException

setTimeBase

public void setTimeBase(javax.microedition.media.TimeBase arg0)
                 throws javax.microedition.media.MediaException
Specified by:
setTimeBase in interface javax.microedition.media.Player
Throws:
javax.microedition.media.MediaException

start

public void start()
           throws javax.microedition.media.MediaException
Specified by:
start in interface javax.microedition.media.Player
Throws:
javax.microedition.media.MediaException

stop

public void stop()
          throws javax.microedition.media.MediaException
Specified by:
stop in interface javax.microedition.media.Player
Throws:
javax.microedition.media.MediaException