|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
maito.datacollecting.oaipmh.ListRecordsTest
public class ListRecordsTest
The main target of this test driver is the class maito.datacollecting.oaipmh.ListRecords. Also maito.datacollecting.oaipmh.ListRecordsContentHandler can be seen as a target for this test. This test covers 100% of the code in that class. NOTE: This test driver uses some test stubs that act as the OAI-PMH repository. The stubs are found at http://db.cs.helsinki.fi/~saarekas/stub/.
Constructor Summary | |
---|---|
ListRecordsTest(java.lang.String name)
|
Method Summary | |
---|---|
void |
testAskNegativeAmount()
Tests that ListRecords behaves correctly when asked for a negative amount of characters. |
void |
testAskZeroAmount()
Tests that ListRecords behaves correctly when asked for zero characters. |
void |
testBadConstructorParameters()
Tests that ListRecords behaves correctly when the parameters passed to it's constructor are incorrect. |
void |
testDateFrom()
Tests that the dateFrom parameter is passed in the request unchanged. |
void |
testErrorHandling()
Tests that ListRecords behaves correctly when one of the server's responses is an unparseable xml. |
void |
testFlowControl()
Tests flow control. |
void |
testHugePartSize()
Tests reading a huge part at the time from the response. |
void |
testInvalidXML()
Tests that ListRecords behaves correctly when the response is an invalid xml. |
void |
testOAIPMHError()
Tests that ListRecords behaves correctly when the OAIPMH response contains an error. |
void |
testRecordTagsOnly()
Tests that the received response contains only record tags from the OAI-PMH response. |
void |
testSmallPartSize()
Tests reading the smallest possible part at the time from the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListRecordsTest(java.lang.String name)
Method Detail |
---|
public void testBadConstructorParameters()
public void testDateFrom()
public void testHugePartSize()
public void testSmallPartSize()
public void testAskNegativeAmount()
public void testAskZeroAmount()
public void testOAIPMHError()
public void testInvalidXML()
public void testRecordTagsOnly()
public void testFlowControl()
public void testErrorHandling()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |