Skip to content

Commit

Permalink
Merge pull request Azure#25 from jcookems/fix577
Browse files Browse the repository at this point in the history
Fix577
  • Loading branch information
jcookems committed Jan 10, 2013
2 parents 6bd41af + 11e5830 commit c7028bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public void canGetProtectionKeyId() throws ServiceException {
// Arrange

// Act
String protectionKeyId = (String) service.action(ProtectionKey
.getProtectionKeyId(ContentKeyType.CommonEncryption));
String protectionKeyId = service.action(ProtectionKey.getProtectionKeyId(ContentKeyType.CommonEncryption));

// Assert
assertNotNull(protectionKeyId);
Expand All @@ -40,11 +39,10 @@ public void canGetProtectionKeyId() throws ServiceException {
@Test
public void canGetProtectionKey() throws ServiceException {
// Arrange
String protectionKeyId = (String) service.action(ProtectionKey
.getProtectionKeyId(ContentKeyType.CommonEncryption));
String protectionKeyId = service.action(ProtectionKey.getProtectionKeyId(ContentKeyType.CommonEncryption));

// Act
String protectionKey = (String) service.action(ProtectionKey.getProtectionKey(protectionKeyId));
String protectionKey = service.action(ProtectionKey.getProtectionKey(protectionKeyId));

// Assert
assertNotNull(protectionKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void getFalseWhenLinkIsntThere() {

@Test
public void canRetrieveEntireLinkByRel() {
LinkInfo link = info.getLink(link2.getRel());
LinkInfo<?> link = info.getLink(link2.getRel());

assertLinksEqual(link2, link);
}
Expand All @@ -94,7 +94,7 @@ public void getNullWhenLinkIsntThere() {
assertNull(info.getLink("noSuchLink"));
}

private static void assertLinksEqual(LinkType expected, LinkInfo actual) {
private static void assertLinksEqual(LinkType expected, LinkInfo<?> actual) {
assertEquals(expected.getHref(), actual.getHref());
}
}

0 comments on commit c7028bd

Please sign in to comment.