org.apache.james.smtpserver
Class DNSRBLHandlerTest

java.lang.Object
  extended by TestCase
      extended by org.apache.james.smtpserver.DNSRBLHandlerTest

public class DNSRBLHandlerTest
extends TestCase


Field Summary
static java.lang.String RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME
           
static java.lang.String RBL_DETAIL_MAIL_ATTRIBUTE_NAME
           
 
Constructor Summary
DNSRBLHandlerTest()
           
 
Method Summary
protected  void setUp()
           
 void testAddJunkScore()
           
 void testBlackListedNoTxt()
           
 void testBlackListedTextPresent()
           
 void testGetNoDetail()
           
 void testInvalidConfig()
           
 void testNotBlackListed()
           
 void testRelayAllowed()
           
 void testWhiteListed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME

public static final java.lang.String RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME
See Also:
Constant Field Values

RBL_DETAIL_MAIL_ATTRIBUTE_NAME

public static final java.lang.String RBL_DETAIL_MAIL_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

DNSRBLHandlerTest

public DNSRBLHandlerTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

testBlackListedTextPresent

public void testBlackListedTextPresent()
                                throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException

testGetNoDetail

public void testGetNoDetail()
                     throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException

testRelayAllowed

public void testRelayAllowed()
                      throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException

testNotBlackListed

public void testNotBlackListed()
                        throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException

testBlackListedNoTxt

public void testBlackListedNoTxt()
                          throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException

testWhiteListed

public void testWhiteListed()
                     throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException

testInvalidConfig

public void testInvalidConfig()

testAddJunkScore

public void testAddJunkScore()
                      throws javax.mail.internet.ParseException
Throws:
javax.mail.internet.ParseException


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