org.apache.james.transport.matchers
Class RecipientIsRegexTest

java.lang.Object
  extended by AbstractRecipientIsTest
      extended by org.apache.james.transport.matchers.RecipientIsRegexTest

public class RecipientIsRegexTest
extends AbstractRecipientIsTest


Constructor Summary
RecipientIsRegexTest(java.lang.String arg0)
           
 
Method Summary
protected  org.apache.mailet.Matcher createMatcher()
           
protected  java.lang.String getRecipientName()
           
 void testRegexIsMatchedAllRecipients()
           
 void testRegexIsMatchedOneRecipient()
           
 void testRegexIsNotMatch()
           
 void testRegexIsNotMatchedCauseError()
           
 void testThrowExceptionWithEmptyPattern()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecipientIsRegexTest

public RecipientIsRegexTest(java.lang.String arg0)
                     throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException
Method Detail

testRegexIsMatchedAllRecipients

public void testRegexIsMatchedAllRecipients()
                                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testRegexIsMatchedOneRecipient

public void testRegexIsMatchedOneRecipient()
                                    throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testRegexIsNotMatch

public void testRegexIsNotMatch()
                         throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testRegexIsNotMatchedCauseError

public void testRegexIsNotMatchedCauseError()
                                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testThrowExceptionWithEmptyPattern

public void testThrowExceptionWithEmptyPattern()
                                        throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getRecipientName

protected java.lang.String getRecipientName()

createMatcher

protected org.apache.mailet.Matcher createMatcher()


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.