Remove compiler warnings
This commit is contained in:
@@ -262,6 +262,7 @@ public class CredHubCredentialTemplate implements CredHubCredentialOperations {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public List<CredentialPath> getAllPaths() {
|
||||
return credHubOperations.doWithRest(new RestOperationsCallback<List<CredentialPath>>() {
|
||||
@Override
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user