org.apache.bval.extras.constraints.net
Class InetAddressValidatorTest

java.lang.Object
  extended by org.apache.bval.extras.constraints.net.InetAddressValidatorTest

public class InetAddressValidatorTest
extends Object

Test cases for InetAddressValidator.

Version:
$Revision: 1228530 $

Constructor Summary
InetAddressValidatorTest()
           
 
Method Summary
 void setUp()
           
 void testBrokenInetAddresses()
          Test obviously broken IPs.
 void testInetAddressesByClass()
          Test valid and invalid IPs from each address class.
 void testInetAddressesFromTheWild()
          Test IPs that point to real, well-known hosts (without actually looking them up).
 void testReservedInetAddresses()
          Test reserved IPs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetAddressValidatorTest

public InetAddressValidatorTest()
Method Detail

setUp

public void setUp()

testInetAddressesFromTheWild

public void testInetAddressesFromTheWild()
Test IPs that point to real, well-known hosts (without actually looking them up).


testInetAddressesByClass

public void testInetAddressesByClass()
Test valid and invalid IPs from each address class.


testReservedInetAddresses

public void testReservedInetAddresses()
Test reserved IPs.


testBrokenInetAddresses

public void testBrokenInetAddresses()
Test obviously broken IPs.



Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.