JSF Test Framework: Mock 1.1.2

org.jboss.test.faces.mock.context
Class MockResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.jboss.test.faces.mock.context.MockResponseWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, FacesMockController.MockObject

public class MockResponseWriter
extends javax.faces.context.ResponseWriter
implements FacesMockController.MockObject


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MockResponseWriter()
          Default constructor
MockResponseWriter(org.easymock.IMocksControl control, String name)
           
 
Method Summary
 Writer append(char arg0)
           
 Writer append(CharSequence arg0)
           
 Writer append(CharSequence arg0, int arg1, int arg2)
           
 javax.faces.context.ResponseWriter cloneWithWriter(Writer arg0)
           
 void close()
           
 void endCDATA()
           
 void endDocument()
           
 void endElement(String arg0)
           
 boolean equals(Object obj)
           
 void flush()
           
 String getCharacterEncoding()
           
 String getContentType()
           
 org.easymock.IMocksControl getControl()
           
 int hashCode()
           
 void startCDATA()
           
 void startDocument()
           
 void startElement(String arg0, javax.faces.component.UIComponent arg1)
           
 String toString()
           
 void write(char[] arg0)
           
 void write(char[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 void write(String arg0)
           
 void write(String arg0, int arg1, int arg2)
           
 void writeAttribute(String arg0, Object arg1, String arg2)
           
 void writeComment(Object arg0)
           
 void writeText(char[] arg0, int arg1, int arg2)
           
 void writeText(Object arg0, String arg1)
           
 void writeText(Object arg0, javax.faces.component.UIComponent arg1, String arg2)
           
 void writeURIAttribute(String arg0, Object arg1, String arg2)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockResponseWriter

public MockResponseWriter()
Default constructor


MockResponseWriter

public MockResponseWriter(org.easymock.IMocksControl control,
                          String name)
Parameters:
control -
Method Detail

getControl

public org.easymock.IMocksControl getControl()
Specified by:
getControl in interface FacesMockController.MockObject

flush

public void flush()
Specified by:
flush in interface Flushable
Specified by:
flush in class javax.faces.context.ResponseWriter

getContentType

public String getContentType()
Specified by:
getContentType in class javax.faces.context.ResponseWriter

startDocument

public void startDocument()
Specified by:
startDocument in class javax.faces.context.ResponseWriter

endDocument

public void endDocument()
Specified by:
endDocument in class javax.faces.context.ResponseWriter

startElement

public void startElement(String arg0,
                         javax.faces.component.UIComponent arg1)
Specified by:
startElement in class javax.faces.context.ResponseWriter

writeText

public void writeText(Object arg0,
                      String arg1)
Specified by:
writeText in class javax.faces.context.ResponseWriter

writeText

public void writeText(Object arg0,
                      javax.faces.component.UIComponent arg1,
                      String arg2)
Overrides:
writeText in class javax.faces.context.ResponseWriter

writeText

public void writeText(char[] arg0,
                      int arg1,
                      int arg2)
Specified by:
writeText in class javax.faces.context.ResponseWriter

endElement

public void endElement(String arg0)
Specified by:
endElement in class javax.faces.context.ResponseWriter

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in class javax.faces.context.ResponseWriter

writeAttribute

public void writeAttribute(String arg0,
                           Object arg1,
                           String arg2)
Specified by:
writeAttribute in class javax.faces.context.ResponseWriter

writeURIAttribute

public void writeURIAttribute(String arg0,
                              Object arg1,
                              String arg2)
Specified by:
writeURIAttribute in class javax.faces.context.ResponseWriter

startCDATA

public void startCDATA()
Overrides:
startCDATA in class javax.faces.context.ResponseWriter

endCDATA

public void endCDATA()
Overrides:
endCDATA in class javax.faces.context.ResponseWriter

writeComment

public void writeComment(Object arg0)
Specified by:
writeComment in class javax.faces.context.ResponseWriter

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(Writer arg0)
Specified by:
cloneWithWriter in class javax.faces.context.ResponseWriter

append

public Writer append(CharSequence arg0)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public Writer append(CharSequence arg0,
                     int arg1,
                     int arg2)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public Writer append(char arg0)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

write

public void write(int arg0)
Overrides:
write in class Writer

write

public void write(char[] arg0)
Overrides:
write in class Writer

write

public void write(char[] arg0,
                  int arg1,
                  int arg2)
Specified by:
write in class Writer

write

public void write(String arg0)
Overrides:
write in class Writer

write

public void write(String arg0,
                  int arg1,
                  int arg2)
Overrides:
write in class Writer

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class Writer

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

JSF Test Framework: Mock 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.