01: /****************************************************************
02: * Licensed to the Apache Software Foundation (ASF) under one *
03: * or more contributor license agreements. See the NOTICE file *
04: * distributed with this work for additional information *
05: * regarding copyright ownership. The ASF licenses this file *
06: * to you under the Apache License, Version 2.0 (the *
07: * "License"); you may not use this file except in compliance *
08: * with the License. You may obtain a copy of the License at *
09: * *
10: * http://www.apache.org/licenses/LICENSE-2.0 *
11: * *
12: * Unless required by applicable law or agreed to in writing, *
13: * software distributed under the License is distributed on an *
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
15: * KIND, either express or implied. See the License for the *
16: * specific language governing permissions and limitations *
17: * under the License. *
18: ****************************************************************/package org.apache.james.test.mock.james;
19:
20: import org.apache.james.services.SpoolRepository;
21: import org.apache.mailet.Mail;
22:
23: import javax.mail.MessagingException;
24:
25: import java.util.ArrayList;
26: import java.util.Collection;
27: import java.util.Iterator;
28:
29: public class MockSpoolRepository implements SpoolRepository {
30: public ArrayList storedMails = new ArrayList();
31:
32: public Mail accept() throws InterruptedException {
33: // TODO Auto-generated method stub
34: return null;
35: }
36:
37: public Mail accept(long delay) throws InterruptedException {
38: // TODO Auto-generated method stub
39: return null;
40: }
41:
42: public Mail accept(AcceptFilter filter) throws InterruptedException {
43: // TODO Auto-generated method stub
44: return null;
45: }
46:
47: public void store(Mail mc) throws MessagingException {
48:
49: }
50:
51: public Iterator list() throws MessagingException {
52: // TODO Auto-generated method stub
53: return null;
54: }
55:
56: public Mail retrieve(String key) throws MessagingException {
57: // TODO Auto-generated method stub
58: return null;
59: }
60:
61: public void remove(Mail mail) throws MessagingException {
62: // TODO Auto-generated method stub
63:
64: }
65:
66: public void remove(Collection mails) throws MessagingException {
67: // TODO Auto-generated method stub
68:
69: }
70:
71: public void remove(String key) throws MessagingException {
72: // TODO Auto-generated method stub
73:
74: }
75:
76: public boolean lock(String key) throws MessagingException {
77: // TODO Auto-generated method stub
78: return false;
79: }
80:
81: public boolean unlock(String key) throws MessagingException {
82: // TODO Auto-generated method stub
83: return false;
84: }
85: }
|