Search in sources :

Example 11 with LiveOperationException

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);
}
Also used : LiveOperation(com.microsoft.live.LiveOperation) LiveOperationException(com.microsoft.live.LiveOperationException)

Example 12 with LiveOperationException

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);
}
Also used : LiveOperation(com.microsoft.live.LiveOperation) LiveOperationException(com.microsoft.live.LiveOperationException)

Aggregations

LiveOperationException (com.microsoft.live.LiveOperationException)12 LiveOperation (com.microsoft.live.LiveOperation)10 ProgressDialog (android.app.ProgressDialog)4 JSONObject (org.json.JSONObject)4 LiveOperationListener (com.microsoft.live.LiveOperationListener)3 DialogInterface (android.content.DialogInterface)2 OnCancelListener (android.content.DialogInterface.OnCancelListener)2 OnClickListener (android.view.View.OnClickListener)2 LiveDownloadOperation (com.microsoft.live.LiveDownloadOperation)2 LiveDownloadOperationListener (com.microsoft.live.LiveDownloadOperationListener)2 File (java.io.File)2 ArrayList (java.util.ArrayList)2 JSONArray (org.json.JSONArray)2 AlertDialog (android.app.AlertDialog)1 Dialog (android.app.Dialog)1 OnDismissListener (android.content.DialogInterface.OnDismissListener)1 View (android.view.View)1 TextView (android.widget.TextView)1 LiveAuthClient (com.microsoft.live.LiveAuthClient)1 LiveAuthException (com.microsoft.live.LiveAuthException)1