Skip to content

Commit

Permalink
chore(docs):[#616] fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed May 16, 2024
1 parent 2398066 commit 1715a3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@SuppressWarnings("PMD.UseObjectForClearerAPI")
public class EdcSubmodelClientLocalStub implements EdcSubmodelClient {

public static final String NOT_IMPLEMENTED = "Not implemented";
private final SubmodelTestdataCreator testdataCreator;

/* package */
Expand Down Expand Up @@ -73,18 +74,18 @@ public CompletableFuture<EdcNotificationResponse> sendNotification(final String
public List<CompletableFuture<EndpointDataReference>> getEndpointReferencesForAsset(final String endpointAddress,
final String filterKey, final String filterValue,
final EndpointDataReferenceStatus cachedEndpointDataReference, final String bpn) throws EdcClientException {
throw new EdcClientException("Not implemented");
throw new EdcClientException(NOT_IMPLEMENTED);
}

@Override
public List<CompletableFuture<EndpointDataReference>> getEndpointReferencesForAsset(final String endpointAddress,
final String filterKey, final String filterValue, final String bpn) throws EdcClientException {
throw new EdcClientException("Not implemented");
throw new EdcClientException(NOT_IMPLEMENTED);
}

@Override
public List<CompletableFuture<EndpointDataReference>> getEndpointReferencesForRegistryAsset(
final String endpointAddress, final String bpn) throws EdcClientException {
throw new EdcClientException("Not implemented");
throw new EdcClientException(NOT_IMPLEMENTED);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ void shouldRetrieveEndpointReferenceForRegistryAssetForNewIdentifier() throws Ex
}

@Test
void shouldFailEndpointReferenceRetrievalForNoRegistryAsset() throws Exception {
void shouldFailEndpointReferenceRetrievalForNoRegistryAsset() {
// arrange
final String edcUrl = "https://edc.controlplane.org/public";
when(config.getControlplane().getProviderSuffix()).thenReturn(PROVIDER_SUFFIX);
Expand Down

This file was deleted.

0 comments on commit 1715a3a

Please sign in to comment.