proai.test
Class OAIDriverImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by proai.test.OAIDriverImplTest
All Implemented Interfaces:
junit.framework.Test

public class OAIDriverImplTest
extends junit.framework.TestCase


Field Summary
static java.lang.String ABOVE_TWO_EVEN_SPEC
           
static java.lang.String ABOVE_TWO_ODD_SPEC
           
static java.lang.String ABOVE_TWO_SPEC
           
static java.lang.String ITEM1
           
static java.lang.String ITEM2
           
static java.lang.String ITEM3
           
static java.lang.String ITEM4
           
static java.lang.String LATEST_DATE
           
static java.lang.String OAI_DC_LOC
           
static java.lang.String OAI_DC_PREFIX
           
static java.lang.String OAI_DC_URI
           
static java.lang.String PRIME_SPEC
           
static java.lang.String TEST_FORMAT_LOC
           
static java.lang.String TEST_FORMAT_PREFIX
           
static java.lang.String TEST_FORMAT_URI
           
 
Constructor Summary
OAIDriverImplTest(java.lang.String name)
           
 
Method Summary
 void checkRecords(java.util.Iterator<? extends Record> iter, int[] expecting)
           
static void main(java.lang.String[] args)
           
 void setUp()
           
 void tearDown()
           
 void testFormats()
           
 void testIdentity()
           
 void testLatestDate()
           
 void testRecords()
           
 void testSets()
           
 
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

LATEST_DATE

public static final java.lang.String LATEST_DATE
See Also:
Constant Field Values

OAI_DC_PREFIX

public static final java.lang.String OAI_DC_PREFIX
See Also:
Constant Field Values

OAI_DC_URI

public static final java.lang.String OAI_DC_URI
See Also:
Constant Field Values

OAI_DC_LOC

public static final java.lang.String OAI_DC_LOC
See Also:
Constant Field Values

TEST_FORMAT_PREFIX

public static final java.lang.String TEST_FORMAT_PREFIX
See Also:
Constant Field Values

TEST_FORMAT_URI

public static final java.lang.String TEST_FORMAT_URI
See Also:
Constant Field Values

TEST_FORMAT_LOC

public static final java.lang.String TEST_FORMAT_LOC
See Also:
Constant Field Values

ABOVE_TWO_SPEC

public static final java.lang.String ABOVE_TWO_SPEC
See Also:
Constant Field Values

ABOVE_TWO_EVEN_SPEC

public static final java.lang.String ABOVE_TWO_EVEN_SPEC
See Also:
Constant Field Values

ABOVE_TWO_ODD_SPEC

public static final java.lang.String ABOVE_TWO_ODD_SPEC
See Also:
Constant Field Values

PRIME_SPEC

public static final java.lang.String PRIME_SPEC
See Also:
Constant Field Values

ITEM1

public static final java.lang.String ITEM1
See Also:
Constant Field Values

ITEM2

public static final java.lang.String ITEM2
See Also:
Constant Field Values

ITEM3

public static final java.lang.String ITEM3
See Also:
Constant Field Values

ITEM4

public static final java.lang.String ITEM4
See Also:
Constant Field Values
Constructor Detail

OAIDriverImplTest

public OAIDriverImplTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testLatestDate

public void testLatestDate()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testIdentity

public void testIdentity()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testFormats

public void testFormats()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testSets

public void testSets()
              throws java.lang.Exception
Throws:
java.lang.Exception

testRecords

public void testRecords()
                 throws java.lang.Exception
Throws:
java.lang.Exception

checkRecords

public void checkRecords(java.util.Iterator<? extends Record> iter,
                         int[] expecting)
                  throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

main

public static void main(java.lang.String[] args)