|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--GuidTests
Tester class for the Guid object
Constructor Summary | |
GuidTests(java.lang.String name)
Constructs a test suite with the given name |
Method Summary | |
static void |
main(java.lang.String[] args)
runs the test suite |
static junit.framework.Test |
suite()
Assembles and returns a test suite for all the test methods of this test case. |
void |
testBinaryConstructor()
tests the case where the Guid is constructed from a byte array |
void |
testBinaryConstructorBad()
tests the case where the Guid is constructed from a bad byte array |
void |
testClone()
tests the cloning and equals functionality |
void |
testDefaultConstructor()
tests the default constructor |
void |
testGetBytes()
tests the getBytes method |
void |
testHashing()
tests the hashCode functionality. |
void |
testNewInstance()
tests the newInstance function |
void |
testNotEquals()
tests the equals method |
void |
testStringConstructor()
tests the case where a guid is constructed from a valid string |
void |
testStringConstructorBad()
tests the case where we are trying to construct a guid from a string with invalid characters |
void |
testStringConstructorBadLen()
tests the case where we are trying to construct a guid from a string with insufficient length. |
void |
testStringConstructorLower()
tests the case where a guid is constructed from a valid string with some of the valid hexadecimal characters in lowercase |
void |
testToString()
tests the toString method |
Methods inherited from class junit.framework.TestCase |
countTestCases, name, run, run, runBare, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GuidTests(java.lang.String name)
name
- the name of the test suiteMethod Detail |
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
args
- the command line arguments for the testpublic void testDefaultConstructor()
public void testStringConstructor()
public void testStringConstructorLower()
public void testStringConstructorBad()
public void testStringConstructorBadLen()
public void testBinaryConstructor()
public void testBinaryConstructorBad()
public void testGetBytes()
public void testToString()
public void testNotEquals()
public void testClone()
public void testNewInstance()
public void testHashing()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |