|
|||||||||
| 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.ExhibitFilterTest
public final class ExhibitFilterTest
Test of filtering of exhibits (eg for search page). Tests that the filters behave as expected.
| Field Summary | |
|---|---|
private AllExhibitProperties |
aep
|
private static java.lang.String |
EX_SMALL_ANON_HTXT_1998
A small single-word HTML fragment by ANON from the dawn of timeS (1998). |
private static java.lang.String |
EX_SMALL_DHD_GIF_2WOLD
A small single-word GIF by DHD a fortnight old. |
private static java.lang.String |
EX_SMALL_DHD_JPEG_NOW
A small single-word-name JPEG by DHD with timestamp of now. |
private GenProps |
gp
|
private static long |
now
Time this class was instantiated. |
private static long |
year1998
Time representing 19980101. |
| Constructor Summary | |
|---|---|
ExhibitFilterTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private static AllExhibitProperties |
_makeAEP(AllExhibitProperties oldAEP)
Make our standard test AEP value. |
protected void |
setUp()
Do any setup needed for the tests. |
protected void |
tearDown()
Do any clearup needed after the tests. |
void |
testEPCMSer()
Test that computable-mutable properties are preserved through serialisation. |
void |
testSearchPageJavaBean()
Test aspects of filtering by the SearchPageJavaBean. |
void |
testSimpleExhibitPropsComputableMutableExhibitInspection()
Do some tests on evaluations of newness, goodness, etc, of exhibits using ExhibitPropsComputableMutable. |
void |
testSimpleExhibitPropsComputableMutableGoodnessDifferentials()
Test differentials in "goodness" induced via GenProps. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 AllExhibitProperties aep
private GenProps gp
private static final java.lang.String EX_SMALL_DHD_JPEG_NOW
private static final java.lang.String EX_SMALL_DHD_GIF_2WOLD
private static final java.lang.String EX_SMALL_ANON_HTXT_1998
private static final long now
private static final long year1998
| Constructor Detail |
|---|
public ExhibitFilterTest(java.lang.String name)
| Method Detail |
|---|
protected void setUp()
setUp in class junit.framework.TestCaseprivate static AllExhibitProperties _makeAEP(AllExhibitProperties oldAEP)
protected void tearDown()
tearDown in class junit.framework.TestCasepublic void testSimpleExhibitPropsComputableMutableExhibitInspection()
public void testSimpleExhibitPropsComputableMutableGoodnessDifferentials()
Tests firstly for author weightings.
public void testEPCMSer()
throws java.lang.Exception
java.lang.Exceptionpublic void testSearchPageJavaBean()
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||