Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.test.comm
Class IPAddressTest
junit.framework.Assert
  |
  +--junit.framework.TestCase
       |
       +--com.newstep.solid.test.comm.IPAddressTest
All Implemented Interfaces:
       Test

public class IPAddressTest      
IPAddressTest is a unit test class for class IPAddress.
See Also:
 
 
 

Constructor Summary
public void
IPAddressTest(String name)
Method Summary
public Class
public static void
main(String args)
public void
public static Test
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
Constructor Detail
IPAddressTest
public void IPAddressTest (String name)
 
Constructs a test case for the test specified by the name argument.
Parameters:
name
The name of the test case
Stereotype:
create
 
Method Detail
getTestedClass
public Class getTestedClass ()
 
Get the class object of the class which will be tested.
Return:
The class which will be tested
 

main
public static void main (String args)
 
Utility main method. Runs the test cases defined in this test class.

Usage: java IPAddressTest
Parameters:
args
Command line arguments are not needed
Static.
 

setUp
public void setUp ()
 
Used to set up the test. This method is called by JUnit before each of
the tests are executed.
See Also:
 
Throws:
Exception
 

suite
public static Test suite ()
 
Create a test suite for running the tests in this class.
IndependentTestSuite will run each test case in a separate classloader.
Return:
A test suite to run all of the tests in this class
Static.
 

tearDown
public void tearDown ()
 
Used to clean up after the test. This method is called by JUnit after
each of the tests have been completed.
See Also:
 
Throws:
Exception
 

testEquals1
public void testEquals1 ()
 
Test for method: equals(java.lang.Object)
See Also:
 
Throws:
Throwable
 

testEquals2
public void testEquals2 ()
 
Test for method: equals(java.lang.Object)
See Also:
 
Throws:
Throwable
 

testEquals4
public void testEquals4 ()
 
Test for method: equals(java.lang.Object)
See Also:
 
Throws:
Throwable
 

testGetAddress1
public void testGetAddress1 ()
 
Test for method: getAddress()
See Also:
 
Throws:
Throwable
 

testGetAddress2
public void testGetAddress2 ()
 
Test for method: getAddress()
See Also:
 
Throws:
Throwable
 

testGetAddress3
public void testGetAddress3 ()
 
Test for method: hashCode()
See Also:
 
Throws:
Throwable
 

testHashCode1
public void testHashCode1 ()
 
Test for method: hashCode()
See Also:
 
Throws:
Throwable
 

testIPAddress1
public void testIPAddress1 ()
 
Test for method: IPAddress(java.lang.String,int)
See Also:
 
Throws:
Throwable
 

testIPAddress2
public void testIPAddress2 ()
 
Test for method: IPAddress(java.lang.String,int)
See Also:
 
Throws:
Throwable
 

testParseString1
public void testParseString1 ()
 
 

testParseString2
public void testParseString2 ()
 
 

testParseString3
public void testParseString3 ()
 
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD