org.apache.james.transport.matchers
Class SubjectStartsWithTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.james.transport.matchers.AbstractSubjectIsTest
              extended by org.apache.james.transport.matchers.SubjectStartsWithTest
All Implemented Interfaces:
junit.framework.Test

public class SubjectStartsWithTest
extends AbstractSubjectIsTest


Field Summary
 
Fields inherited from class org.apache.james.transport.matchers.AbstractSubjectIsTest
matcher, mockedMail
 
Constructor Summary
SubjectStartsWithTest(java.lang.String arg0)
           
 
Method Summary
protected  Matcher createMatcher()
           
protected  java.lang.String getConfigOption()
           
protected  java.lang.String getSubjectName()
           
 void testHostIsMatchedAllRecipients()
           
 void testHostIsNotMatch()
           
 
Methods inherited from class org.apache.james.transport.matchers.AbstractSubjectIsTest
setSubject, setupAll, setupMatcher, setupMockedMail, setupMockedMimeMessage
 
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
 

Constructor Detail

SubjectStartsWithTest

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

testHostIsMatchedAllRecipients

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

testHostIsNotMatch

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

createMatcher

protected Matcher createMatcher()
Specified by:
createMatcher in class AbstractSubjectIsTest

getConfigOption

protected java.lang.String getConfigOption()
Specified by:
getConfigOption in class AbstractSubjectIsTest

getSubjectName

protected java.lang.String getSubjectName()
Specified by:
getSubjectName in class AbstractSubjectIsTest


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