@Override public void testSyncResponseBodyInvalid() throws Exception { this.loadInvalidResponseBody(); try { this.liveConnectClient.get(Paths.ME); this.failNoLiveOperationExceptionThrown(); } catch (LiveOperationException e) { assertNotNull(e.getMessage()); } }
/** * Asserts the returned exception is not null and the LiveOperations from the method, and the * callback listener are the same object. Also, asserts the responseQueue, and exceptionQueue are * empty. * * @param fromMethod * @param fromCallback * @param exception */ protected void checkReturnedException( LiveOperation fromMethod, LiveOperation fromCallback, LiveOperationException exception) { assertNotNull(exception.getMessage()); this.checkReturnedOperations(fromMethod, fromCallback); this.checkResponseBodyInvalid(fromMethod); }
protected void checkReturnedException( LiveDownloadOperation fromMethod, LiveDownloadOperation fromCallback, LiveOperationException exception) throws IOException { assertNotNull(exception.getMessage()); this.checkReturnedOperations(fromMethod, fromCallback); }