org.apache.james.transport.matchers
Class RemoteAddrInNetworkTest

java.lang.Object
  extended by TestCase
      extended by org.apache.james.transport.matchers.AbstractRemoteAddrInNetworkTest
          extended by org.apache.james.transport.matchers.RemoteAddrInNetworkTest

public class RemoteAddrInNetworkTest
extends AbstractRemoteAddrInNetworkTest


Field Summary
 
Fields inherited from class org.apache.james.transport.matchers.AbstractRemoteAddrInNetworkTest
matcher, mockedMail
 
Constructor Summary
RemoteAddrInNetworkTest(java.lang.String arg0)
           
 
Method Summary
protected  org.apache.james.transport.matchers.AbstractNetworkMatcher createMatcher()
           
protected  java.lang.String getAllowedNetworks()
           
protected  java.lang.String getConfigOption()
           
 void testRemoteAddrInNetworkMatched()
           
 void testRemoteAddrInNetworkNotMatch()
           
 
Methods inherited from class org.apache.james.transport.matchers.AbstractRemoteAddrInNetworkTest
setRemoteAddr, setupAll, setupDNSServer, setupMatcher, setupMockedMail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteAddrInNetworkTest

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

testRemoteAddrInNetworkMatched

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

testRemoteAddrInNetworkNotMatch

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

createMatcher

protected org.apache.james.transport.matchers.AbstractNetworkMatcher createMatcher()
Specified by:
createMatcher in class AbstractRemoteAddrInNetworkTest

getConfigOption

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

getAllowedNetworks

protected java.lang.String getAllowedNetworks()
Specified by:
getAllowedNetworks in class AbstractRemoteAddrInNetworkTest


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