[OLINGO-175, OLINGO-205, OLINGO-246] fix fo build
This commit is contained in:
parent
9fa8fbc31f
commit
85a3e0e813
|
@ -212,8 +212,7 @@ public abstract class AbstractServices {
|
|||
final boolean continueOnError = prefer.contains("odata.continue-on-error");
|
||||
|
||||
return xml.createBatchResponse(
|
||||
exploreMultipart(attachment.getAllAttachments(), BOUNDARY, continueOnError),
|
||||
BOUNDARY);
|
||||
exploreMultipart(attachment.getAllAttachments(), BOUNDARY, continueOnError), BOUNDARY);
|
||||
} catch (IOException e) {
|
||||
return xml.createFaultResponse(Accept.XML.toString(version), e);
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ public abstract class AbstractBatchStreamManager extends AbstractODataStreamMana
|
|||
streamDashBoundary();
|
||||
|
||||
final ODataChangesetResponseItem expectedResItem = new ODataChangesetResponseItem();
|
||||
((AbstractODataBatchRequest) req).expectedResItems.add(expectedResItem);
|
||||
((AbstractODataBatchRequest) req).addExpectedResItem(expectedResItem);
|
||||
|
||||
currentItem = new ODataChangesetImpl(req, expectedResItem);
|
||||
|
||||
|
@ -88,7 +88,7 @@ public abstract class AbstractBatchStreamManager extends AbstractODataStreamMana
|
|||
final ODataRetrieveResponseItem expectedResItem = new ODataRetrieveResponseItem();
|
||||
currentItem = new ODataRetrieveImpl(req, expectedResItem);
|
||||
|
||||
((AbstractODataBatchRequest) req).expectedResItems.add(expectedResItem);
|
||||
((AbstractODataBatchRequest) req).addExpectedResItem(expectedResItem);
|
||||
|
||||
return (ODataRetrieve) currentItem;
|
||||
}
|
||||
|
|
|
@ -49,6 +49,10 @@ public abstract class AbstractODataBatchRequest<V extends ODataResponse, T exten
|
|||
*/
|
||||
protected final List<ODataBatchResponseItem> expectedResItems = new ArrayList<ODataBatchResponseItem>();
|
||||
|
||||
protected void addExpectedResItem(ODataBatchResponseItem item) {
|
||||
expectedResItems.add(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
|
|
@ -80,7 +80,8 @@ public class BatchTestITCase extends AbstractTestITCase {
|
|||
// ------------------------
|
||||
// Uncomment to performe check externally ...
|
||||
// ------------------------
|
||||
// private final static String testStaticServiceRootURL= "http://odatae2etest.azurewebsites.net/javatest/DefaultService/";
|
||||
// private final static String testStaticServiceRootURL=
|
||||
// "http://odatae2etest.azurewebsites.net/javatest/DefaultService/";
|
||||
// private final static String ACCEPT = ContentType.MULTIPART_MIXED;
|
||||
// ------------------------
|
||||
private final static String ACCEPT = ContentType.APPLICATION_OCTET_STREAM;
|
||||
|
|
Loading…
Reference in New Issue