Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eclipse-tractusx/item-relationship-service
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bb5384c693b4bc259baf39bf57c79d706b1b4d11
Choose a base ref
..
head repository: eclipse-tractusx/item-relationship-service
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f97ae44334790ec58096cd5bd5faaae1ab5b5d7f
Choose a head ref
Showing with 6 additions and 2 deletions.
  1. +6 −2 ...t/java/org/eclipse/tractusx/irs/edc/client/contract/service/EdcContractDefinitionServiceTest.java
Original file line number Diff line number Diff line change
@@ -22,10 +22,10 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;

@@ -39,6 +39,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.jupiter.MockitoExtension;
import org.skyscreamer.jsonassert.JSONAssert;
import org.springframework.core.ParameterizedTypeReference;
@@ -183,7 +184,7 @@ void givenGetContractDefinitions_thenReturnContractDefinitions() {
}

@Test
void givenDeleteContractDefinition_thenCallDeletionEndpoint() throws URISyntaxException {
void givenDeleteContractDefinition_thenCallDeletionEndpoint() {
// given
when(edcConfiguration.getControlplane()).thenReturn(controlplaneConfig);
when(controlplaneConfig.getEndpoint()).thenReturn(endpointConfig);
@@ -192,6 +193,9 @@ void givenDeleteContractDefinition_thenCallDeletionEndpoint() throws URISyntaxEx
//when
service.deleteContractDefinition("");

//then
Mockito.verify(restTemplate).delete(anyString(), anyString());

}

@Test