use of com.microsoft.live.LiveDownloadOperation in project LiveSDK-for-Android by liveservices.
the class DownloadTest method testAsyncResponseBodyValid.
@Override
public void testAsyncResponseBodyValid() throws Throwable {
this.loadValidResponseBody();
String requestPath = VALID_PATH;
this.runTestOnUiThread(this.createAsyncRunnable(requestPath));
LiveDownloadOperation fromMethod = this.responseQueue.take();
LiveDownloadOperation fromCallback = this.pollResponseQueue();
this.checkReturnedOperations(fromMethod, fromCallback);
this.checkOperationMembers(fromMethod, this.getMethod(), requestPath);
this.checkValidResponseBody(fromMethod);
}
use of com.microsoft.live.LiveDownloadOperation in project LiveSDK-for-Android by liveservices.
the class DownloadTest method testSyncResponseBodyInvalid.
@Override
public void testSyncResponseBodyInvalid() throws Exception {
this.loadInvalidResponseBody();
String requestPath = VALID_PATH;
LiveDownloadOperation operation = this.liveConnectClient.download(requestPath);
this.checkOperationMembers(operation, this.getMethod(), requestPath);
this.checkResponseBodyInvalid(operation);
}
use of com.microsoft.live.LiveDownloadOperation in project LiveSDK-for-Android by liveservices.
the class DownloadTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
this.responseQueue = new LinkedBlockingQueue<LiveDownloadOperation>();
this.queueingListener = new DownloadOperationQueueingListener(this.exceptionQueue, this.responseQueue);
}
use of com.microsoft.live.LiveDownloadOperation in project LiveSDK-for-Android by liveservices.
the class DownloadTest method testAsyncResponseBodyValidWithUserState.
@Override
public void testAsyncResponseBodyValidWithUserState() throws Throwable {
this.loadValidResponseBody();
String requestPath = VALID_PATH;
Object userState = new Object();
this.runTestOnUiThread(this.createAsyncRunnable(requestPath, userState));
LiveDownloadOperation fromMethod = this.responseQueue.take();
LiveDownloadOperation fromCallback = this.pollResponseQueue();
this.checkReturnedOperations(fromMethod, fromCallback);
this.checkOperationMembers(fromMethod, this.getMethod(), requestPath, userState);
this.checkValidResponseBody(fromMethod);
}
use of com.microsoft.live.LiveDownloadOperation in project LiveSDK-for-Android by liveservices.
the class DownloadTest method testSyncResponseBodyValid.
@Override
public void testSyncResponseBodyValid() throws Exception {
this.loadValidResponseBody();
String requestPath = VALID_PATH;
LiveDownloadOperation operation = this.liveConnectClient.download(requestPath);
this.checkOperationMembers(operation, this.getMethod(), requestPath);
this.checkValidResponseBody(operation);
}
Aggregations