Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [P4PU-000] Test Sonar #154

Closed
wants to merge 13 commits into from
3 changes: 1 addition & 2 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ jobs:
-Dsonar.java.binaries=build/classes
-Dsonar.java.libraries=build/libs/*
-Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/jacocoTestReport.xml
-Dsonar.exclusions="**/enums/**,**/model/**,**/dto/**,**/*Constant*,**/*Config.java,**/*Configuration.java,**/*Scheduler.java,**/*Application.java,**/src/test/**,**/Dummy*.java"

-Dsonar.exclusions=**/enums/**,**/model/**,**/dto/**,**/*Constant*,**/*Config.java,**/*Configuration.java,**/*Scheduler.java,**/*Application.java,**/src/test/**,**/Dummy*.java
26 changes: 26 additions & 0 deletions src/main/java/it/gov/pagopa/arc/config/TestConfiguration.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package it.gov.pagopa.arc.config;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Getter @Setter @AllArgsConstructor @NoArgsConstructor
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class TestConfiguration {

private String audience;
private String tokenType;
private AccessToken accessToken;

@Getter @Setter @AllArgsConstructor @NoArgsConstructor
public static class AccessToken {
private Integer expireIn;
private String privateKey;
private String publicKey;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ public class NoticeRequestDTO {
private Boolean registeredToMe;
private String orderBy;
private String ordering;

}
9 changes: 9 additions & 0 deletions src/main/java/it/gov/pagopa/arc/dto/TestDTOSonar.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package it.gov.pagopa.arc.dto;

@lombok.Data
public class TestDTOSonar {
private String testString;
private Integer testInteger;


}
9 changes: 9 additions & 0 deletions src/main/java/it/gov/pagopa/arc/dto/TestDTOSonar2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package it.gov.pagopa.arc.dto;

import lombok.Data;

@Data
public class TestDTOSonar2 {
private String testString;
private Integer testInteger;
}
Loading