Permalink
Browse files

fix a broken unit test

  • Loading branch information...
1 parent b392324 commit 66360c4f2dac7f6e068e9d883096efc3c91c39a2 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 66360c4

Please sign in to comment.