Skip to content

Commit

Permalink
[MOSIP-37998] Readme.md changes
Browse files Browse the repository at this point in the history
Signed-off-by: JanardhanBS-SyncByte <[email protected]>
  • Loading branch information
JanardhanBS-SyncByte committed Dec 11, 2024
1 parent fa5aa74 commit b0b05c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
class Client_V_1_0Test {
private static MockWebServer mockWebServer;

private Gson gson;

@BeforeAll
public static void startWebServerConnection() throws IOException {
mockWebServer = new MockWebServer();
mockWebServer.start(InetAddress.getLoopbackAddress(), 9099);

// Set environment variable for sdk url
System.setProperty("mosip_biosdk_service", "http://localhost:9099/biosdk-service");
}

@AfterAll
Expand All @@ -58,7 +59,6 @@ public static void closeWebServerConnection() throws IOException {
@BeforeEach
public void setup() {
MockitoAnnotations.openMocks(this); // Initialize mocks
gson = new GsonBuilder().serializeNulls().create();
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
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.InetAddress;
Expand All @@ -20,12 +16,10 @@
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;

import com.google.gson.Gson;
Expand Down Expand Up @@ -56,6 +50,9 @@ class UtilTest {
public static void startWebServerConnection() throws IOException {
mockWebServer = new MockWebServer();
mockWebServer.start(InetAddress.getLoopbackAddress(), 9099);

// Set environment variable for sdk url
System.setProperty("mosip_biosdk_service", "http://localhost:9099/biosdk-service");
}

@AfterAll
Expand Down

0 comments on commit b0b05c9

Please sign in to comment.