Skip to content
Snippets Groups Projects
Commit 351275a4 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

added OAIPMH error errors...

parent 87a22bdf
No related branches found
No related tags found
No related merge requests found
......@@ -196,13 +196,13 @@ public class OaiPmhOnlineTests {
System.out.println(TESTING + "#LISTRECORDS");
testList("ListRecords");
}
}
/**
* @throws IOException
*/
@Test
//@Ignore
// @Ignore
public void testListIdentifier() throws IOException {
System.out.println(TESTING + "#LISTIDENTIFIERS");
......@@ -267,6 +267,12 @@ public class OaiPmhOnlineTests {
// System.out.println(res);
// Test for OAIPMH errors.
if (res.contains("<error code=\"badArgument\">")) {
System.err.println(ERROR + " IN OAIPMH RESPONSE: " + res);
assertTrue(false);
}
// Check if token tag is existing.
int tokStart = res.indexOf("<resumptionToken");
int tokEnd = res.indexOf("</resumptionToken");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment