|
|||||||||
| 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.hd.d.pg2k.test.dev.MiscTest
public final class MiscTest
Miscellaneous tests not filed elsewhere. This should be kept as small as possible with tests being moved to better homes ASAP.
| Field Summary | |
|---|---|
private static java.util.Random |
rnd
Private source of OK pseudo-random numbers. |
private static java.lang.String[] |
test7BitStrings
|
| Constructor Summary | |
|---|---|
MiscTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static void |
test8To6()
Test encoding to Base64 (as used in HTTP headers) and decoding thereof. |
static void |
testAEPMemoryTweaks()
Simple test for problems from memory-saving lazy evaluation, etc. |
static void |
testAppVersion()
Test that we can retrieve the application version. |
static void |
testCompact7BitString()
Test correct behaviour of Compact7BitString. |
static void |
testDataPump()
Test if the data pump. |
static void |
testDummy()
Dummy test to keep jUnit framework happy when there are no other tests in this class. |
static void |
testLog2Approx()
Test our quick log-2 computation. |
static void |
testName()
Test correct behaviour of Name. |
static void |
testNameLonger()
Test correct behaviour of Name. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String[] test7BitStrings
private static final java.util.Random rnd
| Constructor Detail |
|---|
public MiscTest(java.lang.String name)
| Method Detail |
|---|
public static final void testAppVersion()
public static final void testLog2Approx()
public static void testDataPump()
throws java.lang.Exception
We set up and test a number of pump instances to try to ensure that we not eating up (and failing to release) vast system resources even if the caller fails to explicitly close() all the stream.
java.lang.Exceptionpublic static void test8To6()
public static void testCompact7BitString()
public static void testName()
throws java.lang.Exception
java.lang.Exception
public static void testNameLonger()
throws java.lang.Exception
java.lang.Exceptionpublic static final void testAEPMemoryTweaks()
public static final void testDummy()
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||