org.apache.james.transport.matchers
Class AbstractRecipientIsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.james.transport.matchers.AbstractRecipientIsTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
RecipientIsTest, UserIsTest

public abstract class AbstractRecipientIsTest
extends junit.framework.TestCase


Field Summary
protected  Matcher matcher
           
protected  FakeMail mockedMail
           
 
Constructor Summary
AbstractRecipientIsTest(java.lang.String arg0)
           
 
Method Summary
protected abstract  Matcher createMatcher()
           
protected abstract  java.lang.String getRecipientName()
           
protected  void setRecipients(MailAddress[] recipients)
           
protected  void setupAll()
           
protected  void setupMatcher()
           
protected  void setupMockedMail()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mockedMail

protected FakeMail mockedMail

matcher

protected Matcher matcher
Constructor Detail

AbstractRecipientIsTest

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

setRecipients

protected void setRecipients(MailAddress[] recipients)

setupMockedMail

protected void setupMockedMail()

setupMatcher

protected void setupMatcher()
                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

setupAll

protected void setupAll()
                 throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getRecipientName

protected abstract java.lang.String getRecipientName()

createMatcher

protected abstract Matcher createMatcher()


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.