Skip to content

Commit

Permalink
Updated Sonar configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chauhan, Ajit committed May 2, 2023
1 parent 5208f25 commit 6cfa69e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
</sonar.coverage.jacoco.xmlReportPaths>
<sonar.coverage.exclusions>
**/ElevateAcceleratorDemoApplication.java,
**/com/mastercard/developers/elevate/accelerator/model/*.java
**/EncryptionConfigUtil.java
**/com/mastercard/developers/elevate/accelerator/model/*.java,
**/com/mastercard/developers/elevate/accelerator/util/EncryptionConfigUtil.java
</sonar.coverage.exclusions>
<sonar.projectKey>Mastercard_elevate-reference-app</sonar.projectKey>
<sonar.organization>mastercard</sonar.organization>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static org.mockito.Mockito.when;

@ExtendWith(MockitoExtension.class)
public class RequestControllerTest {
class RequestControllerTest {


@InjectMocks
Expand All @@ -43,7 +43,7 @@ public class RequestControllerTest {


@BeforeEach
void setUp() throws ApiException{
void setUp() {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import static org.mockito.Mockito.when;

@ExtendWith(MockitoExtension.class)
public class CustomExceptionHandlerTest {
class CustomExceptionHandlerTest {

@InjectMocks
CustomExceptionHandler customExceptionHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@

import com.mastercard.developer.encryption.FieldLevelEncryptionConfig;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;

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

public class EncryptionConfigUtilTest {

@InjectMocks
EncryptionConfigUtil encryptionConfigUtil;
class EncryptionConfigUtilTest {

@Test
void getEncryptionConfig_Exception_Test() {
FieldLevelEncryptionConfig fieldLevelEncryptionConfig = encryptionConfigUtil.getEncryptionConfig(null);
FieldLevelEncryptionConfig fieldLevelEncryptionConfig = EncryptionConfigUtil.getEncryptionConfig(null);
assertNull(fieldLevelEncryptionConfig);
}

Expand Down

0 comments on commit 6cfa69e

Please sign in to comment.