use of com.microsoft.live.LiveOperation in project LiveSDK-for-Android by liveservices.
the class GetTest method testAsyncResponseBodyValidWithUserState.
@Override
public void testAsyncResponseBodyValidWithUserState() throws Throwable {
this.loadValidResponseBody();
Object userState = new Object();
String requestPath = Paths.ME;
this.runTestOnUiThread(createAsyncRunnable(requestPath, userState));
LiveOperation fromMethod = this.responseQueue.take();
LiveOperation fromCallback = this.pollResponseQueue();
this.checkReturnedOperations(fromMethod, fromCallback);
this.checkOperationMembers(fromMethod, METHOD, requestPath, userState);
this.checkValidResponseBody(fromMethod);
}
use of com.microsoft.live.LiveOperation in project LiveSDK-for-Android by liveservices.
the class GetTest method testSyncResponseBodyValid.
@Override
public void testSyncResponseBodyValid() throws Exception {
this.loadValidResponseBody();
String requestPath = Paths.ME;
LiveOperation operation = this.liveConnectClient.get(requestPath);
this.checkOperationMembers(operation, METHOD, requestPath);
this.checkValidResponseBody(operation);
}
use of com.microsoft.live.LiveOperation in project LiveSDK-for-Android by liveservices.
the class GetTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
this.responseQueue = new LinkedBlockingQueue<LiveOperation>();
this.queueingListener = new OperationQueueingListener(this.exceptionQueue, this.responseQueue);
}
use of com.microsoft.live.LiveOperation in project LiveSDK-for-Android by liveservices.
the class MoveTest method testSyncResponseBodyValid.
@Override
public void testSyncResponseBodyValid() throws Exception {
this.loadValidResponseBody();
String requestPath = "folder.181231";
String destination = "folder.1231";
LiveOperation operation = this.liveConnectClient.move(requestPath, destination);
this.checkOperationMembers(operation, METHOD, requestPath);
this.checkValidResponseBody(operation);
}
use of com.microsoft.live.LiveOperation in project LiveSDK-for-Android by liveservices.
the class PostTest method testSyncResponseBodyValid.
@Override
public void testSyncResponseBodyValid() throws Exception {
this.loadValidResponseBody();
String requestPath = Paths.ME_CALENDARS;
LiveOperation operation = this.liveConnectClient.post(requestPath, CALENDAR);
this.checkOperationMembers(operation, METHOD, requestPath);
this.checkValidResponseBody(operation);
}
Aggregations