org.apache.james.dnsserver
Class DNSServerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.james.dnsserver.DNSServerTest
All Implemented Interfaces:
junit.framework.Test

public class DNSServerTest
extends junit.framework.TestCase


Constructor Summary
DNSServerTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCNAMEasMXrecords()
          Please note that this is an hardcoded test that works because brandilyncollins.com.
 void testINARecords()
          Please note that this is an hardcoded test that works because www.pippo.com.
 void testMXCatches()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

DNSServerTest

public DNSServerTest()
Method Detail

testINARecords

public void testINARecords()
                    throws java.lang.Exception
Please note that this is an hardcoded test that works because www.pippo.com. is an alias to pippo.com and pippo.com has "pippo.com.inbound.mxlogic.net." as its mx record. This is the first domain with a record proving a previous james bug. This test will be invalidated by any change in the pippo.com dns records

Parameters:
args -
Throws:
java.lang.Exception

testMXCatches

public void testMXCatches()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testCNAMEasMXrecords

public void testCNAMEasMXrecords()
                          throws java.lang.Exception
Please note that this is an hardcoded test that works because brandilyncollins.com. has an MX record that point to mxmail.register.com and this is a CNAME to the real address. This test will be invalidated by any change in the brandilyncollins.com dns records

Parameters:
args -
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception


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