[OLINGO-447] Remove previous invalid fix

This commit is contained in:
Christian Amend 2014-10-01 11:04:34 +02:00
parent 34825ab062
commit ad3fbfb4cb
3 changed files with 4 additions and 4 deletions

View File

@ -107,6 +107,7 @@ public class BasicHttpITCase extends AbstractBaseTestITCase{
connection.setRequestMethod("GET");
connection.setRequestProperty(HttpHeader.ODATA_MAX_VERSION, "4.0");
connection.setRequestProperty(HttpHeader.ACCEPT, "*/*");
connection.connect();
@ -118,7 +119,6 @@ public class BasicHttpITCase extends AbstractBaseTestITCase{
@Override
protected CommonODataClient<?> getClient() {
// TODO Auto-generated method stub
return null;
}

View File

@ -19,6 +19,7 @@
package org.apache.olingo.fit.tecsvc.http;
import org.apache.olingo.client.api.CommonODataClient;
import org.apache.olingo.commons.api.http.HttpHeader;
import org.apache.olingo.fit.AbstractBaseTestITCase;
import org.apache.olingo.fit.tecsvc.TecSvcConst;
import org.junit.Test;
@ -45,6 +46,7 @@ public class PingITCase extends AbstractBaseTestITCase{
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection.setRequestProperty(HttpHeader.ACCEPT, "*/*");
connection.connect();
int code = connection.getResponseCode();
@ -60,6 +62,7 @@ public class PingITCase extends AbstractBaseTestITCase{
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection.setRequestProperty(HttpHeader.ACCEPT, "*/*");
connection.connect();
int code = connection.getResponseCode();

View File

@ -112,9 +112,6 @@ public class AcceptType {
typeSubtype.add(tokens[0]);
typeSubtype.add(tokens[1]);
}
} else if (tokens.length == 1 && "*".equals(tokens[0])) {
typeSubtype.add(tokens[0]);
typeSubtype.add(tokens[0]);
} else {
throw new IllegalArgumentException("Not exactly one '" + TypeUtil.TYPE_SUBTYPE_SEPARATOR +
"' in format '" + format + "', or it is at the beginning or at the end.");