org.hd.d.pg2k.test.dev
Class ExhibitNameTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hd.d.pg2k.test.dev.ExhibitNameTest
All Implemented Interfaces:
junit.framework.Test

public final class ExhibitNameTest
extends junit.framework.TestCase

Tests various features of exhibit name syntax, parsing, etc. This should be extended to test all the various conversions and parses and comparators from ExhibitName and Name.


Constructor Summary
ExhibitNameTest()
           
 
Method Summary
 void testExtractionMethods()
          Test some extraction methods.
 void testIsSensitive()
          Test isSensitive() exhibit-flagging mechanism.
 void testMainWordExtraction()
          Test extraction of main-words component of a name.
static void testNameOnAEP()
          Test correct behaviour of Name on real AEP data.
 void testValidSyntaxMethods()
          Test the "valid syntax" methods.
 void testVirtualNameGeneration()
          Test generation of "virtual" names.
 
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
 

Constructor Detail

ExhibitNameTest

public ExhibitNameTest()
Method Detail

testValidSyntaxMethods

public void testValidSyntaxMethods()
Test the "valid syntax" methods. Created after enabling assert()s revealed internal inconsistencies.


testExtractionMethods

public void testExtractionMethods()
Test some extraction methods. Created after enabling assert()s revealed internal inconsistencies.


testVirtualNameGeneration

public void testVirtualNameGeneration()
Test generation of "virtual" names. Simple tests that names are "virtualised" correctly.


testMainWordExtraction

public void testMainWordExtraction()
Test extraction of main-words component of a name. Does some very basic testing of the ability to extract the main words.

These tests are entirely syntactic, ie do not require particular exhibit names or meanings.


testIsSensitive

public void testIsSensitive()
Test isSensitive() exhibit-flagging mechanism.


testNameOnAEP

public static void testNameOnAEP()
                          throws java.lang.Exception
Test correct behaviour of Name on real AEP data.

Throws:
java.lang.Exception

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.