|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.util.HexUtilTest
public class HexUtilTest
Tests the HexUtil class.
| Constructor Summary | |
|---|---|
HexUtilTest()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Main method to run test stand-alone. |
void |
testBytesToHex()
Tests the bytesToHex method of the HexUtil class. |
void |
testCrossCheck()
Perform a cross check with the Integer.toHexString functionality. |
void |
testHexDump()
Test the hexdump method and prints out the result for visual test. |
void |
testHexDump2()
Test hexdump with sixteen bytes from 'a' to 'p'. |
void |
testHexDumpWithEmptyArray()
Test hexdump with a zero-length byte array. |
void |
testHexDumpWithNull()
Test hexdump with a null byte array. |
void |
testInvalidStrings()
Tests a couple of invalid hex strings. |
void |
testNullAndEmpty()
Test empty and null byte array. |
void |
testValidStrings()
Tests a couple of valid hex strings. |
void |
testVariousBytes()
Tests boundaries. |
void |
testWithRandomData()
Test HexUtil with 10k of random data. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HexUtilTest()
| Method Detail |
|---|
public static void main(String[] args)
args - command line argumentspublic void testBytesToHex()
public void testVariousBytes()
public void testCrossCheck()
public void testNullAndEmpty()
public void testValidStrings()
public void testInvalidStrings()
public void testWithRandomData()
public void testHexDump()
public void testHexDump2()
public void testHexDumpWithEmptyArray()
public void testHexDumpWithNull()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||