You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by to...@apache.org on 2003/10/17 20:10:31 UTC

cvs commit: cocoon-2.1/src/blocks/mail/mocks/javax/mail Folder.java

tony        2003/10/17 11:10:31

  Modified:    src/blocks/mail/mocks/javax/mail Folder.java
  Log:
  minor updates to the mock objects
  
  Revision  Changes    Path
  1.2       +76 -75    cocoon-2.1/src/blocks/mail/mocks/javax/mail/Folder.java
  
  Index: Folder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/Folder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Folder.java	10 Mar 2003 16:35:45 -0000	1.1
  +++ Folder.java	17 Oct 2003 18:10:31 -0000	1.2
  @@ -8,79 +8,80 @@
    */
   public class Folder {
   
  -	public static final int READ_ONLY = 0;
  -	public static final int HOLDS_FOLDERS = 0;
  -	public static final int HOLDS_MESSAGES = 0;
  -	
  -	public void open(int mode) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public boolean isOpen() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  +    public static final int READ_ONLY = 1;
  +    public static final int READ_WRITE = 2;
  +    public static final int HOLDS_FOLDERS = 2;
  +    public static final int HOLDS_MESSAGES = 1;
  +    
  +    public void open(int mode) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public boolean isOpen() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
   
  -	public void close(boolean b) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public Message[] getMessages() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public void fetch(Message[] m, FetchProfile profile) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public Folder[] list(String pattern) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public String getFullName() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public Message getMessage(int id) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public Message[] search(javax.mail.search.SearchTerm term) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public String getName() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public String getURLName() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public boolean isSubscribed() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public int getType() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public boolean hasNewMessages() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public int getMessageCount() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public int getNewMessageCount() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public int getDeletedMessageCount() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public int getUnreadMessageCount() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  +    public void close(boolean b) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public Message[] getMessages() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public void fetch(Message[] m, FetchProfile profile) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public Folder[] list(String pattern) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public String getFullName() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public Message getMessage(int id) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public Message[] search(javax.mail.search.SearchTerm term) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public String getName() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public String getURLName() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public boolean isSubscribed() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public int getType() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public boolean hasNewMessages() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public int getMessageCount() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public int getNewMessageCount() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public int getDeletedMessageCount() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +    
  +    public int getUnreadMessageCount() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
   }