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

Ignoring online tests

parent a7c9a2fd
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,6 @@ import info.textgrid.namespaces.middleware.tgcrud.common.TextGridMimetypes; ...@@ -15,8 +15,6 @@ import info.textgrid.namespaces.middleware.tgcrud.common.TextGridMimetypes;
public class OaiPmhDARIAHTest { public class OaiPmhDARIAHTest {
public static OAI_ESClient oaiEsClient; public static OAI_ESClient oaiEsClient;
DeletedRecordType deletedRecordType = DeletedRecordType.NO;
GranularityType granularityType = GranularityType.YYYY_MM_DD_THH_MM_SS_Z;
private static RecordDelivererDC record; private static RecordDelivererDC record;
private static RecordListDelivererDC recordList; private static RecordListDelivererDC recordList;
...@@ -24,8 +22,10 @@ public class OaiPmhDARIAHTest { ...@@ -24,8 +22,10 @@ public class OaiPmhDARIAHTest {
private static MetadataFormatListDeliverer metadataFormatList = new MetadataFormatListDeliverer(); private static MetadataFormatListDeliverer metadataFormatList = new MetadataFormatListDeliverer();
private static SetDeliverer setListDARIAH = new SetDeliverer(false, true); private static SetDeliverer setListDARIAH = new SetDeliverer(false, true);
private DeletedRecordType deletedRecordType = DeletedRecordType.NO;
private GranularityType granularityType = GranularityType.YYYY_MM_DD_THH_MM_SS_Z;
private RepIdentification rep = new RepIdentification("DARIAH-DE Repository", private RepIdentification rep = new RepIdentification("DARIAH-DE Repository",
"http://trep.de.dariah.eu", this.deletedRecordType, "2011-06-11T02:32:40Z", "https://trep.de.dariah.eu", this.deletedRecordType, "2011-06-11T02:32:40Z",
this.granularityType, "2.0", "funk@sub.uni-goettingen.de"); this.granularityType, "2.0", "funk@sub.uni-goettingen.de");
/** /**
...@@ -46,8 +46,8 @@ public class OaiPmhDARIAHTest { ...@@ -46,8 +46,8 @@ public class OaiPmhDARIAHTest {
*/ */
@BeforeClass @BeforeClass
public static void setUp() throws Exception { public static void setUp() throws Exception {
int[] ports = new int[] {9202}; int[] ports = new int[] {9202};
oaiEsClient = new OAI_ESClient("localhost", ports, 100); oaiEsClient = new OAI_ESClient("localhost", ports, 100);
OAI_ESClient.setEsIndex("dariah-public"); OAI_ESClient.setEsIndex("dariah-public");
OAI_ESClient.setEsType("metadata"); OAI_ESClient.setEsType("metadata");
...@@ -61,7 +61,6 @@ public class OaiPmhDARIAHTest { ...@@ -61,7 +61,6 @@ public class OaiPmhDARIAHTest {
*/ */
@Test @Test
public void testGetRequestIdentify() throws ParseException { public void testGetRequestIdentify() throws ParseException {
System.out.println("Test for the verb \"Identify\" with succesfull response"); System.out.println("Test for the verb \"Identify\" with succesfull response");
String r = this.request.getRequest("Identify", "", "", "", "", "", ""); String r = this.request.getRequest("Identify", "", "", "", "", "", "");
System.out.println(r); System.out.println(r);
......
...@@ -9,6 +9,7 @@ import org.junit.After; ...@@ -9,6 +9,7 @@ import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.Before; import org.junit.Before;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import info.textgrid.utils.httpclient.TGHttpClient; import info.textgrid.utils.httpclient.TGHttpClient;
import info.textgrid.utils.httpclient.TGHttpResponse; import info.textgrid.utils.httpclient.TGHttpResponse;
...@@ -20,6 +21,7 @@ import info.textgrid.utils.httpclient.TGHttpResponse; ...@@ -20,6 +21,7 @@ import info.textgrid.utils.httpclient.TGHttpResponse;
* *
* @author Stefan E. Funk, SUB Göttingen * @author Stefan E. Funk, SUB Göttingen
*/ */
@Ignore
public class OaiPmhDariahdeOnlineTests { public class OaiPmhDariahdeOnlineTests {
// The OAIPMH host to be tested. // The OAIPMH host to be tested.
......
...@@ -42,15 +42,10 @@ public class OaiPmhTest { ...@@ -42,15 +42,10 @@ public class OaiPmhTest {
private RepIdentification rep = new RepIdentification("TextGrid-Repository", "www.textgridrep.de", private RepIdentification rep = new RepIdentification("TextGrid-Repository", "www.textgridrep.de",
this.bla, "2011-06-11T02:32:40Z", this.bla2, "2.0", "textgrid-support@gwdg.de"); this.bla, "2011-06-11T02:32:40Z", this.bla2, "2.0", "textgrid-support@gwdg.de");
private MetadataFormatListDeliverer metadataFormatList = new MetadataFormatListDeliverer(); private MetadataFormatListDeliverer metadataFormatList = new MetadataFormatListDeliverer();
// FIXME Why is setdeliverer commented out here again?
// private SetDeliverer setListDARIAH = new SetDeliverer(false, true);
private OAIPMHImpl request = new OAIPMHImpl( private OAIPMHImpl request = new OAIPMHImpl(
this.rep, OaiPmhTest.record, OaiPmhTest.recordIDIOM, OaiPmhTest.recordList, this.rep, OaiPmhTest.record, OaiPmhTest.recordIDIOM, OaiPmhTest.recordList,
OaiPmhTest.recordListIDIOM, this.metadataFormatList, OaiPmhTest.recordListIDIOM, this.metadataFormatList,
OaiPmhTest.setListTextGrid, OaiPmhTest.identifierList, OaiPmhTest.identifierListIDIOM); OaiPmhTest.setListTextGrid, OaiPmhTest.identifierList, OaiPmhTest.identifierListIDIOM);
// FIXME from develop branch... not needed?
// private SetDeliverer setListDARIAH = new SetDeliverer(false, true);
// private SetDeliverer setListTextGrid = new SetDeliverer(true, false);
/** /**
* @throws Exception * @throws Exception
...@@ -180,7 +175,7 @@ public class OaiPmhTest { ...@@ -180,7 +175,7 @@ public class OaiPmhTest {
record.setLanguages(TGConstants.LANGUAGE_LIST); record.setLanguages(TGConstants.LANGUAGE_LIST);
record.setPublishers(TGConstants.PUBLISHER_LIST); record.setPublishers(TGConstants.PUBLISHER_LIST);
record.setRelations(TGConstants.RELATIONS_LIST); record.setRelations(TGConstants.RELATIONS_LIST);
//record.setRelationsForWork(TGConstants.RELATIONS_FOR_WORK_LIST); // record.setRelationsForWork(TGConstants.RELATIONS_FOR_WORK_LIST);
record.setRights(TGConstants.RIGHTS_LIST); record.setRights(TGConstants.RIGHTS_LIST);
record.setSources(TGConstants.SOURCE_LIST); record.setSources(TGConstants.SOURCE_LIST);
record.setSubjects(TGConstants.SUBJECT_LIST); record.setSubjects(TGConstants.SUBJECT_LIST);
...@@ -418,11 +413,6 @@ public class OaiPmhTest { ...@@ -418,11 +413,6 @@ public class OaiPmhTest {
OaiPmhTest.recordList.setModifiedField(TGConstants.CREATED); OaiPmhTest.recordList.setModifiedField(TGConstants.CREATED);
OaiPmhTest.recordList.setIdentifierField(TGConstants.URI); OaiPmhTest.recordList.setIdentifierField(TGConstants.URI);
OaiPmhTest.recordList.setSearchResponseSize("100"); OaiPmhTest.recordList.setSearchResponseSize("100");
// FIXME Left over from develop branch... needed?
// JAXBElement<OAIPMHType> r =
// this.request.getRequest("ListRecords", "", "oai_dc",
// "project:TGPR-ed7c757e-1ead-69d4-7c17-554a3581925c", "", "", "");
String r = this.request.getRequest("ListRecords", "", "oai_dc", "", "", "", ""); String r = this.request.getRequest("ListRecords", "", "oai_dc", "", "", "", "");
System.out.println(r); System.out.println(r);
System.out.println("-----------------------------------\n"); System.out.println("-----------------------------------\n");
...@@ -468,6 +458,8 @@ public class OaiPmhTest { ...@@ -468,6 +458,8 @@ public class OaiPmhTest {
/** /**
* @throws ParseException * @throws ParseException
*/ */
@Test
@Ignore
public void testListSetsDH() throws ParseException { public void testListSetsDH() throws ParseException {
OaiPmhTest.setListTextGrid.setFormatField("format"); OaiPmhTest.setListTextGrid.setFormatField("format");
OaiPmhTest.setListTextGrid.setFormatToFilter(TextGridMimetypes.DARIAH_COLLECTION); OaiPmhTest.setListTextGrid.setFormatToFilter(TextGridMimetypes.DARIAH_COLLECTION);
......
...@@ -14,6 +14,7 @@ import org.junit.After; ...@@ -14,6 +14,7 @@ import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.Before; import org.junit.Before;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import info.textgrid.utils.httpclient.TGHttpClient; import info.textgrid.utils.httpclient.TGHttpClient;
import info.textgrid.utils.httpclient.TGHttpResponse; import info.textgrid.utils.httpclient.TGHttpResponse;
...@@ -25,6 +26,7 @@ import info.textgrid.utils.httpclient.TGHttpResponse; ...@@ -25,6 +26,7 @@ import info.textgrid.utils.httpclient.TGHttpResponse;
* *
* @author Stefan E. Funk, SUB Göttingen * @author Stefan E. Funk, SUB Göttingen
*/ */
@Ignore
public class OaiPmhTextgridOnlineTests { public class OaiPmhTextgridOnlineTests {
private static final String OAI_DC_PREFIX = "oai_dc"; private static final String OAI_DC_PREFIX = "oai_dc";
...@@ -951,7 +953,6 @@ public class OaiPmhTextgridOnlineTests { ...@@ -951,7 +953,6 @@ public class OaiPmhTextgridOnlineTests {
return true; return true;
} }
} }
} }
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