com.hammingweight.hammock.mocks.obex
Class MockSessionNotifier

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.obex.MockSessionNotifier
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.io.Connection, javax.obex.SessionNotifier

public class MockSessionNotifier
extends AMockObject
implements javax.obex.SessionNotifier


Field Summary
static MockMethod MTHD_ACCEPT_AND_OPEN_$_SERVERREQUESTHANDLER
           
static MockMethod MTHD_ACCEPT_AND_OPEN_$_SERVERREQUESTHANDLER_AUTHENTICATOR
           
static MockMethod MTHD_CLOSE
           
 
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
MockSessionNotifier()
           
MockSessionNotifier(IInvocationHandler handler)
           
 
Method Summary
 javax.microedition.io.Connection acceptAndOpen(javax.obex.ServerRequestHandler arg0)
           
 javax.microedition.io.Connection acceptAndOpen(javax.obex.ServerRequestHandler arg0, javax.obex.Authenticator arg1)
           
 void close()
           
 
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_ACCEPT_AND_OPEN_$_SERVERREQUESTHANDLER

public static final MockMethod MTHD_ACCEPT_AND_OPEN_$_SERVERREQUESTHANDLER

MTHD_ACCEPT_AND_OPEN_$_SERVERREQUESTHANDLER_AUTHENTICATOR

public static final MockMethod MTHD_ACCEPT_AND_OPEN_$_SERVERREQUESTHANDLER_AUTHENTICATOR

MTHD_CLOSE

public static final MockMethod MTHD_CLOSE
Constructor Detail

MockSessionNotifier

public MockSessionNotifier()

MockSessionNotifier

public MockSessionNotifier(IInvocationHandler handler)
Method Detail

acceptAndOpen

public javax.microedition.io.Connection acceptAndOpen(javax.obex.ServerRequestHandler arg0)
                                               throws java.io.IOException
Specified by:
acceptAndOpen in interface javax.obex.SessionNotifier
Throws:
java.io.IOException

acceptAndOpen

public javax.microedition.io.Connection acceptAndOpen(javax.obex.ServerRequestHandler arg0,
                                                      javax.obex.Authenticator arg1)
                                               throws java.io.IOException
Specified by:
acceptAndOpen in interface javax.obex.SessionNotifier
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface javax.microedition.io.Connection
Throws:
java.io.IOException