com.hammingweight.hammock.mocks.io
Class MockDataOutput

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

public class MockDataOutput
extends AMockObject
implements java.io.DataOutput


Field Summary
static MockMethod MTHD_WRITE_$_ARRAY_BYTE
           
static MockMethod MTHD_WRITE_$_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_WRITE_$_INT
           
static MockMethod MTHD_WRITE_BOOLEAN_$_BOOLEAN
           
static MockMethod MTHD_WRITE_BYTE_$_INT
           
static MockMethod MTHD_WRITE_BYTES_$_STRING
           
static MockMethod MTHD_WRITE_CHAR_$_INT
           
static MockMethod MTHD_WRITE_CHARS_$_STRING
           
static MockMethod MTHD_WRITE_DOUBLE_$_DOUBLE
           
static MockMethod MTHD_WRITE_FLOAT_$_FLOAT
           
static MockMethod MTHD_WRITE_INT_$_INT
           
static MockMethod MTHD_WRITE_LONG_$_LONG
           
static MockMethod MTHD_WRITE_SHORT_$_INT
           
static MockMethod MTHD_WRITE_UTF_$_STRING
           
 
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
MockDataOutput()
           
MockDataOutput(IInvocationHandler handler)
           
 
Method Summary
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 void writeBoolean(boolean arg0)
           
 void writeByte(int arg0)
           
 void writeBytes(java.lang.String arg0)
           
 void writeChar(int arg0)
           
 void writeChars(java.lang.String arg0)
           
 void writeDouble(double arg0)
           
 void writeFloat(float arg0)
           
 void writeInt(int arg0)
           
 void writeLong(long arg0)
           
 void writeShort(int arg0)
           
 void writeUTF(java.lang.String 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_WRITE_$_ARRAY_BYTE

public static final MockMethod MTHD_WRITE_$_ARRAY_BYTE

MTHD_WRITE_$_ARRAY_BYTE_INT_INT

public static final MockMethod MTHD_WRITE_$_ARRAY_BYTE_INT_INT

MTHD_WRITE_$_INT

public static final MockMethod MTHD_WRITE_$_INT

MTHD_WRITE_BOOLEAN_$_BOOLEAN

public static final MockMethod MTHD_WRITE_BOOLEAN_$_BOOLEAN

MTHD_WRITE_BYTES_$_STRING

public static final MockMethod MTHD_WRITE_BYTES_$_STRING

MTHD_WRITE_BYTE_$_INT

public static final MockMethod MTHD_WRITE_BYTE_$_INT

MTHD_WRITE_CHARS_$_STRING

public static final MockMethod MTHD_WRITE_CHARS_$_STRING

MTHD_WRITE_CHAR_$_INT

public static final MockMethod MTHD_WRITE_CHAR_$_INT

MTHD_WRITE_DOUBLE_$_DOUBLE

public static final MockMethod MTHD_WRITE_DOUBLE_$_DOUBLE

MTHD_WRITE_FLOAT_$_FLOAT

public static final MockMethod MTHD_WRITE_FLOAT_$_FLOAT

MTHD_WRITE_INT_$_INT

public static final MockMethod MTHD_WRITE_INT_$_INT

MTHD_WRITE_LONG_$_LONG

public static final MockMethod MTHD_WRITE_LONG_$_LONG

MTHD_WRITE_SHORT_$_INT

public static final MockMethod MTHD_WRITE_SHORT_$_INT

MTHD_WRITE_UTF_$_STRING

public static final MockMethod MTHD_WRITE_UTF_$_STRING
Constructor Detail

MockDataOutput

public MockDataOutput()

MockDataOutput

public MockDataOutput(IInvocationHandler handler)
Method Detail

write

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

write

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

write

public void write(int arg0)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

writeBoolean

public void writeBoolean(boolean arg0)
                  throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeBytes

public void writeBytes(java.lang.String arg0)
                throws java.io.IOException
Throws:
java.io.IOException

writeByte

public void writeByte(int arg0)
               throws java.io.IOException
Specified by:
writeByte in interface java.io.DataOutput
Throws:
java.io.IOException

writeChars

public void writeChars(java.lang.String arg0)
                throws java.io.IOException
Specified by:
writeChars in interface java.io.DataOutput
Throws:
java.io.IOException

writeChar

public void writeChar(int arg0)
               throws java.io.IOException
Specified by:
writeChar in interface java.io.DataOutput
Throws:
java.io.IOException

writeDouble

public void writeDouble(double arg0)
                 throws java.io.IOException
Specified by:
writeDouble in interface java.io.DataOutput
Throws:
java.io.IOException

writeFloat

public void writeFloat(float arg0)
                throws java.io.IOException
Specified by:
writeFloat in interface java.io.DataOutput
Throws:
java.io.IOException

writeInt

public void writeInt(int arg0)
              throws java.io.IOException
Specified by:
writeInt in interface java.io.DataOutput
Throws:
java.io.IOException

writeLong

public void writeLong(long arg0)
               throws java.io.IOException
Specified by:
writeLong in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

public void writeShort(int arg0)
                throws java.io.IOException
Specified by:
writeShort in interface java.io.DataOutput
Throws:
java.io.IOException

writeUTF

public void writeUTF(java.lang.String arg0)
              throws java.io.IOException
Specified by:
writeUTF in interface java.io.DataOutput
Throws:
java.io.IOException