| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.test.comm
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 |
|
| Method Summary |
public Class |
|
public static void |
|
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 |
|
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
public Class getTestedClass ()
Get the class object of the class which will be tested.
Return:
The class which will be tested
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.
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
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.
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
public void testEquals1 ()
Test for method: equals(java.lang.Object)
See Also:
Throws:
Throwable
public void testEquals2 ()
Test for method: equals(java.lang.Object)
See Also:
Throws:
Throwable
public void testEquals4 ()
Test for method: equals(java.lang.Object)
See Also:
Throws:
Throwable
public void testGetAddress1 ()
Test for method: getAddress()
See Also:
Throws:
Throwable
public void testGetAddress2 ()
Test for method: getAddress()
See Also:
Throws:
Throwable
public void testGetAddress3 ()
Test for method: hashCode()
See Also:
Throws:
Throwable
public void testHashCode1 ()
Test for method: hashCode()
See Also:
Throws:
Throwable
public void testIPAddress1 ()
Test for method: IPAddress(java.lang.String,int)
See Also:
Throws:
Throwable
public void testIPAddress2 ()
Test for method: IPAddress(java.lang.String,int)
See Also:
Throws:
Throwable
public void testParseString1 ()
public void testParseString2 ()
public void testParseString3 ()
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|