MAILET-122 Remove AbstractRecipientIsTest

Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/cf28ef99
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/cf28ef99
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/cf28ef99

Branch: refs/heads/master
Commit: cf28ef99ed6fa2b3d917d0084b566fd246ad98dc
Parents: 2838d4f
Author: Benoit Tellier <[email protected]>
Authored: Wed Aug 31 14:35:06 2016 +0700
Committer: Benoit Tellier <[email protected]>
Committed: Mon Oct 10 11:36:00 2016 +0200

----------------------------------------------------------------------
 .../matchers/AbstractRecipientIsTest.java       | 75 --------------------
 1 file changed, 75 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/cf28ef99/mailet/standard/src/test/java/org/apache/james/transport/matchers/AbstractRecipientIsTest.java
----------------------------------------------------------------------
diff --git 
a/mailet/standard/src/test/java/org/apache/james/transport/matchers/AbstractRecipientIsTest.java
 
b/mailet/standard/src/test/java/org/apache/james/transport/matchers/AbstractRecipientIsTest.java
deleted file mode 100644
index 0b55958..0000000
--- 
a/mailet/standard/src/test/java/org/apache/james/transport/matchers/AbstractRecipientIsTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-
-package org.apache.james.transport.matchers;
-
-import java.io.UnsupportedEncodingException;
-import java.util.Arrays;
-
-import javax.mail.MessagingException;
-
-import org.apache.mailet.MailAddress;
-import org.apache.mailet.Matcher;
-import org.apache.mailet.base.test.FakeMail;
-import org.apache.mailet.base.test.FakeMailContext;
-import org.apache.mailet.base.test.FakeMatcherConfig;
-
-import junit.framework.TestCase;
-
-public abstract class AbstractRecipientIsTest extends TestCase {
-
-    protected FakeMail mockedMail;
-
-    protected Matcher matcher;
-
-    private MailAddress[] recipients;
-
-    public AbstractRecipientIsTest(String arg0)
-            throws UnsupportedEncodingException {
-        super(arg0);
-    }
-
-    protected void setRecipients(MailAddress[] recipients) {
-        this.recipients = recipients;
-    }
-
-    protected void setupMockedMail() throws MessagingException {
-        mockedMail = FakeMail.builder()
-                .recipients(Arrays.asList(recipients))
-                .build();
-
-    }
-
-    protected void setupMatcher() throws MessagingException {
-        matcher = createMatcher();
-        FakeMatcherConfig mci = new FakeMatcherConfig("RecipientIs="
-                + getRecipientName(), FakeMailContext.defaultContext());
-        matcher.init(mci);
-    }
-
-    protected void setupAll() throws MessagingException {
-        setupMockedMail();
-        setupMatcher();
-    }
-
-    protected abstract String getRecipientName();
-
-    protected abstract Matcher createMatcher();
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to