com.hammingweight.hammock.mocks.io
Class MockPrintStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.PrintStream
          extended by com.hammingweight.hammock.mocks.io.MockPrintStream
All Implemented Interfaces:
IMockObject

public class MockPrintStream
extends java.io.PrintStream
implements IMockObject


Field Summary
static MockMethod MTHD_CHECK_ERROR
           
static MockMethod MTHD_CLOSE
           
static MockMethod MTHD_FLUSH
           
static MockMethod MTHD_PRINT_$_ARRAY_CHAR
           
static MockMethod MTHD_PRINT_$_BOOLEAN
           
static MockMethod MTHD_PRINT_$_CHAR
           
static MockMethod MTHD_PRINT_$_DOUBLE
           
static MockMethod MTHD_PRINT_$_FLOAT
           
static MockMethod MTHD_PRINT_$_INT
           
static MockMethod MTHD_PRINT_$_LONG
           
static MockMethod MTHD_PRINT_$_OBJECT
           
static MockMethod MTHD_PRINT_$_STRING
           
static MockMethod MTHD_PRINTLN
           
static MockMethod MTHD_PRINTLN_$_ARRAY_CHAR
           
static MockMethod MTHD_PRINTLN_$_BOOLEAN
           
static MockMethod MTHD_PRINTLN_$_CHAR
           
static MockMethod MTHD_PRINTLN_$_DOUBLE
           
static MockMethod MTHD_PRINTLN_$_FLOAT
           
static MockMethod MTHD_PRINTLN_$_INT
           
static MockMethod MTHD_PRINTLN_$_LONG
           
static MockMethod MTHD_PRINTLN_$_OBJECT
           
static MockMethod MTHD_PRINTLN_$_STRING
           
static MockMethod MTHD_SET_ERROR
           
static MockMethod MTHD_WRITE_$_ARRAY_BYTE
           
static MockMethod MTHD_WRITE_$_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_WRITE_$_INT
           
 
Constructor Summary
MockPrintStream(java.io.OutputStream arg0)
           
MockPrintStream(java.io.OutputStream arg0, IInvocationHandler handler)
           
 
Method Summary
 boolean checkError()
           
 void close()
           
 void flush()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 void print(boolean arg0)
           
 void print(char arg0)
           
 void print(char[] arg0)
           
 void print(double arg0)
           
 void print(float arg0)
           
 void print(int arg0)
           
 void print(long arg0)
           
 void print(java.lang.Object arg0)
           
 void print(java.lang.String arg0)
           
 void println()
           
 void println(boolean arg0)
           
 void println(char arg0)
           
 void println(char[] arg0)
           
 void println(double arg0)
           
 void println(float arg0)
           
 void println(int arg0)
           
 void println(long arg0)
           
 void println(java.lang.Object arg0)
           
 void println(java.lang.String arg0)
           
 void setError()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_CHECK_ERROR

public static final MockMethod MTHD_CHECK_ERROR

MTHD_CLOSE

public static final MockMethod MTHD_CLOSE

MTHD_FLUSH

public static final MockMethod MTHD_FLUSH

MTHD_PRINTLN

public static final MockMethod MTHD_PRINTLN

MTHD_PRINTLN_$_ARRAY_CHAR

public static final MockMethod MTHD_PRINTLN_$_ARRAY_CHAR

MTHD_PRINTLN_$_BOOLEAN

public static final MockMethod MTHD_PRINTLN_$_BOOLEAN

MTHD_PRINTLN_$_CHAR

public static final MockMethod MTHD_PRINTLN_$_CHAR

MTHD_PRINTLN_$_DOUBLE

public static final MockMethod MTHD_PRINTLN_$_DOUBLE

MTHD_PRINTLN_$_FLOAT

public static final MockMethod MTHD_PRINTLN_$_FLOAT

MTHD_PRINTLN_$_INT

public static final MockMethod MTHD_PRINTLN_$_INT

MTHD_PRINTLN_$_LONG

public static final MockMethod MTHD_PRINTLN_$_LONG

MTHD_PRINTLN_$_OBJECT

public static final MockMethod MTHD_PRINTLN_$_OBJECT

MTHD_PRINTLN_$_STRING

public static final MockMethod MTHD_PRINTLN_$_STRING

MTHD_PRINT_$_ARRAY_CHAR

public static final MockMethod MTHD_PRINT_$_ARRAY_CHAR

MTHD_PRINT_$_BOOLEAN

public static final MockMethod MTHD_PRINT_$_BOOLEAN

MTHD_PRINT_$_CHAR

public static final MockMethod MTHD_PRINT_$_CHAR

MTHD_PRINT_$_DOUBLE

public static final MockMethod MTHD_PRINT_$_DOUBLE

MTHD_PRINT_$_FLOAT

public static final MockMethod MTHD_PRINT_$_FLOAT

MTHD_PRINT_$_INT

public static final MockMethod MTHD_PRINT_$_INT

MTHD_PRINT_$_LONG

public static final MockMethod MTHD_PRINT_$_LONG

MTHD_PRINT_$_OBJECT

public static final MockMethod MTHD_PRINT_$_OBJECT

MTHD_PRINT_$_STRING

public static final MockMethod MTHD_PRINT_$_STRING

MTHD_SET_ERROR

public static final MockMethod MTHD_SET_ERROR

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
Constructor Detail

MockPrintStream

public MockPrintStream(java.io.OutputStream arg0)

MockPrintStream

public MockPrintStream(java.io.OutputStream arg0,
                       IInvocationHandler handler)
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

checkError

public boolean checkError()
Overrides:
checkError in class java.io.PrintStream

close

public void close()
Overrides:
close in class java.io.PrintStream

flush

public void flush()
Overrides:
flush in class java.io.PrintStream

println

public void println()
Overrides:
println in class java.io.PrintStream

println

public void println(char[] arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(boolean arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(char arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(double arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(float arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(int arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(long arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(java.lang.Object arg0)
Overrides:
println in class java.io.PrintStream

println

public void println(java.lang.String arg0)
Overrides:
println in class java.io.PrintStream

print

public void print(char[] arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(boolean arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(char arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(double arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(float arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(int arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(long arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(java.lang.Object arg0)
Overrides:
print in class java.io.PrintStream

print

public void print(java.lang.String arg0)
Overrides:
print in class java.io.PrintStream

setError

public void setError()
Overrides:
setError in class java.io.PrintStream

write

public void write(byte[] arg0)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
Overrides:
write in class java.io.PrintStream

write

public void write(int arg0)
Overrides:
write in class java.io.PrintStream