tony        2003/10/17 11:10:22

  Modified:    src/blocks/mail/mocks/javax/mail Session.java
  Log:
  minor updates to the mock objects
  
  Revision  Changes    Path
  1.4       +10 -6     cocoon-2.1/src/blocks/mail/mocks/javax/mail/Session.java
  
  Index: Session.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/Session.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Session.java      8 Aug 2003 11:35:03 -0000       1.3
  +++ Session.java      17 Oct 2003 18:10:22 -0000      1.4
  @@ -16,16 +16,20 @@
       }
       
       public static Session getDefaultInstance(Properties props, Authenticator 
auth) {
  -     throw new NoSuchMethodError("This is a mock object");
  +        throw new NoSuchMethodError("This is a mock object");
       }
       
       public Store getStore(URLName name) {
  -             throw new NoSuchMethodError("This is a mock object");
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public Store getStore(String protocol) {
  +        throw new NoSuchMethodError("This is a mock object");
       }
   
  -     public Provider[] getProviders() {
  -             throw new NoSuchMethodError("This is a mock object");
  -     }
  +    public Provider[] getProviders() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
   
       public Transport getTransport(String name) {
           throw new NoSuchMethodError("This is a mock object");
  
  
  

Reply via email to