Skip to content

Commit

Permalink
[PPD-206] crud gps: corrected error "unable to find valid certification
Browse files Browse the repository at this point in the history
path" during JUNIT test execution
  • Loading branch information
aacitelli committed Jun 24, 2022
1 parent 5220cbd commit e05c2f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 81 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package it.gov.pagopa.spontaneouspayment;

import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import static org.junit.jupiter.api.Assertions.assertTrue;

@SpringBootTest
class SpontaneousPaymentApplicationTests {
class SpontaneousPaymentApplicationTest {

@Test
void contextLoads() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;

import it.gov.pagopa.spontaneouspayment.SpontaneousPaymentApplication;
import it.gov.pagopa.spontaneouspayment.config.TestUtil;
import it.gov.pagopa.spontaneouspayment.entity.Organization;
import it.gov.pagopa.spontaneouspayment.model.EnrollmentModel;
import it.gov.pagopa.spontaneouspayment.model.OrganizationModel;
import it.gov.pagopa.spontaneouspayment.service.EnrollmentsService;

@SpringBootTest(classes = SpontaneousPaymentApplication.class)
@SpringBootTest
@AutoConfigureMockMvc
class EnrollmentsControllerTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ void teardown() {
CosmosAsyncClient client = new CosmosClientBuilder().gatewayMode().endpointDiscoveryEnabled(false)
.endpoint(emulator.getEmulatorEndpoint()).key(emulator.getEmulatorKey()).buildAsyncClient();
client.getDatabase("db").delete();
client.close();
emulator.stop();
emulator.close();
System.clearProperty("javax.net.ssl.trustStore");
System.clearProperty("javax.net.ssl.trustStorePassword");
System.clearProperty("javax.net.ssl.trustStoreType");
}


Expand Down

0 comments on commit e05c2f9

Please sign in to comment.