Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update tests for linkinfo

  • Loading branch information...
commit f5c36ad1abfa6d75b98bafbfc80643ba49424707 1 parent fd3b016
Albert Cheng authored
View
2  microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/AssetIntegrationTest.java
@@ -349,7 +349,7 @@ public void canGetParentBackFromAsset() throws ServiceException, InterruptedExce
assertEquals(1, outputAssets.size());
AssetInfo childAsset = outputAssets.get(0);
- LinkInfo parentAssetLink = childAsset.getParentAssetsLink();
+ LinkInfo<AssetInfo> parentAssetLink = childAsset.getParentAssetsLink();
AssetInfo parentAsset = service.get(Asset.get(parentAssetLink));
// Assert
View
7 microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/EncryptionIntegrationTest.java
@@ -96,7 +96,7 @@ public void uploadAesProtectedAssetAndDownloadSuccess() throws Exception {
JobInfo jobInfo = decodeAsset("uploadAesProtectedAssetSuccess", assetInfo.getId());
// assert
- LinkInfo taskLinkInfo = jobInfo.getTasksLink();
+ LinkInfo<TaskInfo> taskLinkInfo = jobInfo.getTasksLink();
List<TaskInfo> taskInfos = service.list(Task.list(taskLinkInfo));
for (TaskInfo taskInfo : taskInfos) {
assertEquals(TaskState.Completed, taskInfo.getState());
@@ -139,9 +139,8 @@ private JobInfo decodeAsset(String name, String inputAssetId) throws ServiceExce
}
private String makeContentKeyId(byte[] aesKey) throws ServiceException, Exception {
- String protectionKeyId = (String) service.action(ProtectionKey
- .getProtectionKeyId(ContentKeyType.StorageEncryption));
- String protectionKey = (String) service.action(ProtectionKey.getProtectionKey(protectionKeyId));
+ String protectionKeyId = service.action(ProtectionKey.getProtectionKeyId(ContentKeyType.StorageEncryption));
+ String protectionKey = service.action(ProtectionKey.getProtectionKey(protectionKeyId));
String contentKeyIdUuid = UUID.randomUUID().toString();
String contentKeyId = String.format("nb:kid:UUID:%s", contentKeyIdUuid);
View
2  microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/JobIntegrationTest.java
@@ -67,7 +67,7 @@ private void verifyJobProperties(String message, String testName, Integer priori
assertDateApproxEquals(message + " EndTime", endTime, actualJob.getEndTime());
if (expectedTaskCount != null) {
- LinkInfo tasksLink = actualJob.getTasksLink();
+ LinkInfo<TaskInfo> tasksLink = actualJob.getTasksLink();
ListResult<TaskInfo> actualTasks = service.list(Task.list(tasksLink));
assertEquals(message + " tasks size", expectedTaskCount.intValue(), actualTasks.size());
}
Please sign in to comment.
Something went wrong with that request. Please try again.