com.hammingweight.hammock.mocks.io
Class MockDataInput

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.io.MockDataInput
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, java.io.DataInput

public class MockDataInput
extends AMockObject
implements java.io.DataInput


Field Summary
static MockMethod MTHD_READ_BOOLEAN
           
static MockMethod MTHD_READ_BYTE
           
static MockMethod MTHD_READ_CHAR
           
static MockMethod MTHD_READ_DOUBLE
           
static MockMethod MTHD_READ_FLOAT
           
static MockMethod MTHD_READ_FULLY_$_ARRAY_BYTE
           
static MockMethod MTHD_READ_FULLY_$_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_READ_INT
           
static MockMethod MTHD_READ_LINE
           
static MockMethod MTHD_READ_LONG
           
static MockMethod MTHD_READ_SHORT
           
static MockMethod MTHD_READ_UNSIGNED_BYTE
           
static MockMethod MTHD_READ_UNSIGNED_SHORT
           
static MockMethod MTHD_READ_UTF
           
static MockMethod MTHD_SKIP_BYTES_$_INT
           
 
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
MockDataInput()
           
MockDataInput(IInvocationHandler handler)
           
 
Method Summary
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] arg0)
           
 void readFully(byte[] arg0, int arg1, int arg2)
           
 int readInt()
           
 java.lang.String readLine()
           
 long readLong()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 java.lang.String readUTF()
           
 int skipBytes(int arg0)
           
 
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_READ_BOOLEAN

public static final MockMethod MTHD_READ_BOOLEAN

MTHD_READ_BYTE

public static final MockMethod MTHD_READ_BYTE

MTHD_READ_CHAR

public static final MockMethod MTHD_READ_CHAR

MTHD_READ_DOUBLE

public static final MockMethod MTHD_READ_DOUBLE

MTHD_READ_FLOAT

public static final MockMethod MTHD_READ_FLOAT

MTHD_READ_FULLY_$_ARRAY_BYTE

public static final MockMethod MTHD_READ_FULLY_$_ARRAY_BYTE

MTHD_READ_FULLY_$_ARRAY_BYTE_INT_INT

public static final MockMethod MTHD_READ_FULLY_$_ARRAY_BYTE_INT_INT

MTHD_READ_INT

public static final MockMethod MTHD_READ_INT

MTHD_READ_LINE

public static final MockMethod MTHD_READ_LINE

MTHD_READ_LONG

public static final MockMethod MTHD_READ_LONG

MTHD_READ_SHORT

public static final MockMethod MTHD_READ_SHORT

MTHD_READ_UNSIGNED_BYTE

public static final MockMethod MTHD_READ_UNSIGNED_BYTE

MTHD_READ_UNSIGNED_SHORT

public static final MockMethod MTHD_READ_UNSIGNED_SHORT

MTHD_READ_UTF

public static final MockMethod MTHD_READ_UTF

MTHD_SKIP_BYTES_$_INT

public static final MockMethod MTHD_SKIP_BYTES_$_INT
Constructor Detail

MockDataInput

public MockDataInput()

MockDataInput

public MockDataInput(IInvocationHandler handler)
Method Detail

readBoolean

public boolean readBoolean()
                    throws java.io.IOException
Specified by:
readBoolean in interface java.io.DataInput
Throws:
java.io.IOException

readByte

public byte readByte()
              throws java.io.IOException
Specified by:
readByte in interface java.io.DataInput
Throws:
java.io.IOException

readChar

public char readChar()
              throws java.io.IOException
Specified by:
readChar in interface java.io.DataInput
Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Specified by:
readDouble in interface java.io.DataInput
Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.IOException
Specified by:
readFloat in interface java.io.DataInput
Throws:
java.io.IOException

readFully

public void readFully(byte[] arg0)
               throws java.io.IOException
Specified by:
readFully in interface java.io.DataInput
Throws:
java.io.IOException

readFully

public void readFully(byte[] arg0,
                      int arg1,
                      int arg2)
               throws java.io.IOException
Specified by:
readFully in interface java.io.DataInput
Throws:
java.io.IOException

readInt

public int readInt()
            throws java.io.IOException
Specified by:
readInt in interface java.io.DataInput
Throws:
java.io.IOException

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Specified by:
readLong in interface java.io.DataInput
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException
Specified by:
readShort in interface java.io.DataInput
Throws:
java.io.IOException

readUnsignedByte

public int readUnsignedByte()
                     throws java.io.IOException
Specified by:
readUnsignedByte in interface java.io.DataInput
Throws:
java.io.IOException

readUnsignedShort

public int readUnsignedShort()
                      throws java.io.IOException
Specified by:
readUnsignedShort in interface java.io.DataInput
Throws:
java.io.IOException

readUTF

public java.lang.String readUTF()
                         throws java.io.IOException
Specified by:
readUTF in interface java.io.DataInput
Throws:
java.io.IOException

skipBytes

public int skipBytes(int arg0)
              throws java.io.IOException
Specified by:
skipBytes in interface java.io.DataInput
Throws:
java.io.IOException