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

new snapshot version 2.5.17-SNAPSHOT.

parent 49c8b19f
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<artifactId>oaipmh</artifactId> <artifactId>oaipmh</artifactId>
<groupId>info.textgrid.middleware</groupId> <groupId>info.textgrid.middleware</groupId>
<version>2.5.16-SNAPSHOT</version> <version>2.5.17-SNAPSHOT</version>
</parent> </parent>
<groupId>info.textgrid.middleware</groupId> <groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh-core</artifactId> <artifactId>oaipmh-core</artifactId>
......
...@@ -27,9 +27,8 @@ import org.junit.Test; ...@@ -27,9 +27,8 @@ import org.junit.Test;
public class OaiPmhOnlineTests { public class OaiPmhOnlineTests {
// The OAIPMH host to be tested. // The OAIPMH host to be tested.
private static String host = private static String host = "http://textgrid-esx1.gwdg.de/1.0/tgoaipmh/";
"http://textgrid-esx1.gwdg.de/1.0/tgoaipmh/"; // private static String host = "http://textgridlab.org/1.0/tgoaipmh/";
// private static String host = "http://textgridlab.org/1.0/tgoaipmh/";
// Some output finals. // Some output finals.
private static final String ERROR = ">>> ERROR"; private static final String ERROR = ">>> ERROR";
...@@ -333,11 +332,24 @@ public class OaiPmhOnlineTests { ...@@ -333,11 +332,24 @@ public class OaiPmhOnlineTests {
assertTrue(false); assertTrue(false);
} }
// Count response objects at first.
int recordCount = 0;
int i = res.indexOf("<" + recordOrHeader + ">", 0);
while (i != -1) {
recordCount++;
i++;
i = res.indexOf("<" + recordOrHeader + ">", i);
}
System.out.println("\t" + recordOrHeader + "s: " + recordCount);
// Check if token tag is existing. // Check if token tag is existing.
int tokStart = res.indexOf("<resumptionToken"); int tokStart = res.indexOf("<resumptionToken");
int tokEnd = res.indexOf("</resumptionToken"); int tokEnd = res.indexOf("</resumptionToken");
if (tokStart == -1 && tokEnd == -1) { if (tokStart == -1 && tokEnd == -1) {
System.out.println("\ttoken: no token");
return "-1"; return "-1";
} }
...@@ -365,17 +377,6 @@ public class OaiPmhOnlineTests { ...@@ -365,17 +377,6 @@ public class OaiPmhOnlineTests {
cursorStr.indexOf("\""))); cursorStr.indexOf("\"")));
System.out.println("\tsize: " + size + " / " + cursor); System.out.println("\tsize: " + size + " / " + cursor);
// Count response objects.
int recordCount = 0;
int i = res.indexOf("<" + recordOrHeader + ">", 0);
while (i != -1) {
recordCount++;
i++;
i = res.indexOf("<" + recordOrHeader + ">", i);
}
System.out.println("\t" + recordOrHeader + "s: " + recordCount);
// If token is provided, and we have less than 100 elements: mekkern! // If token is provided, and we have less than 100 elements: mekkern!
if (!restok.isEmpty()) { if (!restok.isEmpty()) {
synchronized (OaiPmhOnlineTests.class) { synchronized (OaiPmhOnlineTests.class) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<artifactId>oaipmh</artifactId> <artifactId>oaipmh</artifactId>
<groupId>info.textgrid.middleware</groupId> <groupId>info.textgrid.middleware</groupId>
<version>2.5.16-SNAPSHOT</version> <version>2.5.17-SNAPSHOT</version>
</parent> </parent>
<groupId>info.textgrid.middleware</groupId> <groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh-webapp</artifactId> <artifactId>oaipmh-webapp</artifactId>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>info.textgrid.middleware</groupId> <groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh</artifactId> <artifactId>oaipmh</artifactId>
<version>2.5.16-SNAPSHOT</version> <version>2.5.17-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>DARIAHDE :: OAI-PMH DataProvider</name> <name>DARIAHDE :: OAI-PMH DataProvider</name>
<properties> <properties>
......
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