cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.2/src/test/org/apache/cocoon/environment/mock MockEnvironment.java
Date Thu, 30 Oct 2003 13:52:27 GMT
cziegeler    2003/10/30 05:52:27

  Modified:    src/test/org/apache/cocoon/environment/mock
                        MockEnvironment.java
  Log:
  Fixing mock
  
  Revision  Changes    Path
  1.7       +2 -30     cocoon-2.2/src/test/org/apache/cocoon/environment/mock/MockEnvironment.java
  
  Index: MockEnvironment.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.2/src/test/org/apache/cocoon/environment/mock/MockEnvironment.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MockEnvironment.java	15 Oct 2003 20:54:43 -0000	1.6
  +++ MockEnvironment.java	30 Oct 2003 13:52:27 -0000	1.7
  @@ -60,10 +60,7 @@
   
   import junit.framework.AssertionFailedError;
   
  -import org.apache.cocoon.ProcessingException;
   import org.apache.cocoon.environment.Environment;
  -import org.xml.sax.ContentHandler;
  -import org.xml.sax.SAXException;
   
   public class MockEnvironment implements Environment {
   
  @@ -91,14 +88,6 @@
           return uriprefix;
       }
   
  -    public String getRootContext() {
  -        return rootcontext;
  -    }
  -
  -    public String getContext() {
  -        return context;
  -    }
  -
       public String getView() {
           return view;
       }
  @@ -107,15 +96,11 @@
           return action;
       }
   
  -    public void setContext(String prefix, String uri, String context) {
  +    public void setURI(String prefix, String uri) {
           throw new AssertionFailedError("Not implemented");
       }
   
  -    public void changeContext(String uriprefix, String context) throws Exception {
  -        throw new AssertionFailedError("Not implemented");
  -    }
  -
  -    public void redirect(boolean sessionmode, String url) throws IOException {
  +    public void redirect(String url, boolean global, boolean permanent) throws IOException
{
           throw new AssertionFailedError("Use Redirector.redirect instead!");
       }
   
  @@ -143,11 +128,6 @@
           return status;
       }
   
  -    public OutputStream getOutputStream() throws IOException {
  -        outputstream = new ByteArrayOutputStream();
  -        return outputstream;
  -    }
  -
       public OutputStream getOutputStream(int bufferSize) throws IOException {
           outputstream = new ByteArrayOutputStream();
           return outputstream;
  @@ -199,14 +179,6 @@
       
       public void finishingProcessing() {
           throw new AssertionFailedError("Not implemented");
  -    }
  -
  -
  -    public void toSAX(org.apache.excalibur.source.Source source,
  -                ContentHandler handler)
  -      throws SAXException, IOException, ProcessingException {
  -
  -        throw new AssertionFailedError("Not not use deprecated methods!");
       }
   
       /**
  
  
  

Mime
View raw message