use of com.microsoft.live.LiveOperationException in project LiveSDK-for-Android by liveservices.
the class DeleteTest method testAsyncResponseBodyInvalid.
@Override
public void testAsyncResponseBodyInvalid() throws Throwable {
this.loadInvalidResponseBody();
String requestPath = this.calendarId;
this.runTestOnUiThread(createAsyncRunnable(requestPath));
LiveOperation fromMethod = this.responseQueue.take();
LiveOperation fromCallback = this.pollResponseQueue();
LiveOperationException exception = this.pollExceptionQueue();
this.checkReturnedException(fromMethod, fromCallback, exception);
this.checkOperationMembers(fromMethod, METHOD, requestPath);
this.checkResponseBodyInvalid(fromMethod);
}
use of com.microsoft.live.LiveOperationException in project LiveSDK-for-Android by liveservices.
the class PostTest method testAsyncResponseBodyInvalid.
@Override
public void testAsyncResponseBodyInvalid() throws Throwable {
this.loadInvalidResponseBody();
String requestPath = Paths.INVALID;
this.runTestOnUiThread(createAsyncRunnable(requestPath, CALENDAR));
LiveOperation fromMethod = this.responseQueue.take();
LiveOperation fromCallback = this.pollResponseQueue();
LiveOperationException exception = this.pollExceptionQueue();
this.checkReturnedException(fromMethod, fromCallback, exception);
this.checkOperationMembers(fromMethod, METHOD, requestPath);
this.checkResponseBodyInvalid(fromMethod);
}
Aggregations