Permalink
Browse files

Merge pull request #80 from gcheng/testfailure

fix a broken unit test
  • Loading branch information...
2 parents b392324 + 66360c4 commit 01df851d385bd76ad8ddc6c91006920fc48f0155 Albert Cheng committed Jan 7, 2013
@@ -211,7 +211,7 @@ private void verifyTaskProperties(String message, String mediaProcessorId, TaskO
// Optional fields
assertEquals(message + " getConfiguration", configuration, actual.getConfiguration());
assertEquals(message + " getName", name, actual.getName());
- assertEquals(message + " getPriority", priority, actual.getPriority().intValue());
+ assertEquals(message + " getPriority", priority, actual.getPriority());
// Optional encryption fields
assertEqualsNullEmpty(message + " getEncryptionKeyId", encryptionKeyId, actual.getEncryptionKeyId());
@@ -239,7 +239,7 @@ private void verifyTaskProperties(String message, String mediaProcessorId, TaskO
assertTrue(message + " outputAssets.get(0).getId != assetInfo.getId",
!assetInfo.getId().equals(outputAssets.get(0).getId()));
- assertEquals(message + " getProgress", progress, actual.getProgress().doubleValue(), 0.01);
+ assertEquals(message + " getProgress", progress, actual.getProgress(), 0.01);
assertEquals(message + " getRunningDuration", runningDuration, actual.getRunningDuration(), 0.01);
assertDateApproxEquals(message + " getStartTime", startTime, actual.getStartTime());
assertEquals(message + " getState", state, actual.getState());

0 comments on commit 01df851

Please sign in to comment.