Remove compiler warnings

This commit is contained in:
Scott Frederick
2018-10-25 17:17:13 -05:00
parent 7a08161744
commit 78b524b931
2 changed files with 2 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ public class CredHubCredentialTemplate implements CredHubCredentialOperations {
}
@Override
@Deprecated
public List<CredentialPath> getAllPaths() {
return credHubOperations.doWithRest(new RestOperationsCallback<List<CredentialPath>>() {
@Override

View File

@@ -36,6 +36,7 @@ import static org.springframework.http.HttpStatus.OK;
@RunWith(MockitoJUnitRunner.class)
public class CredHubCredentialTemplateUnitTests extends CredHubCredentialTemplateUnitTestsBase {
@Test
@SuppressWarnings("deprecation")
public void getAllPaths() {
when(restTemplate.getForEntity(SHOW_ALL_URL_QUERY, CredentialPathData.class))
.thenReturn(new ResponseEntity<>(new CredentialPathData(new CredentialPath("/path1"), new CredentialPath("/path2")), OK));