Skip to content

Commit cdb99d4

Browse files
Fabienfabiengo
authored andcommitted
chore: visibility on test
1 parent a6e77f6 commit cdb99d4

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

dossierfacile-process-file/src/test/java/fr/dossierfacile/process/file/service/documentrules/GuaranteeProviderRulesValidationServiceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Document buildGuaranteeProviderFile() throws JsonProcessingException {
6464

6565

6666
@Test
67-
public void document_full_test() throws Exception {
67+
void document_full_test() throws Exception {
6868
Document document = buildGuaranteeProviderFile();
6969
((GuaranteeProviderFile) document.getFiles().get(0).getParsedFileAnalysis().getParsedFile())
7070
.setValidityDate(LocalDate.now().plusMonths(1).format(DateTimeFormatter.ofPattern("dd/MM/yyyy")));
@@ -78,7 +78,7 @@ public void document_full_test() throws Exception {
7878
}
7979

8080
@Test
81-
public void document_expired() throws Exception {
81+
void document_expired() throws Exception {
8282
Document document = buildGuaranteeProviderFile();
8383
((GuaranteeProviderFile) document.getFiles().get(0).getParsedFileAnalysis().getParsedFile())
8484
.setValidityDate(LocalDate.now().minusDays(1).format(DateTimeFormatter.ofPattern("dd/MM/yyyy")));
@@ -94,7 +94,7 @@ public void document_expired() throws Exception {
9494
}
9595

9696
@Test
97-
public void document_wrong_firstname() throws Exception {
97+
void document_wrong_firstname() throws Exception {
9898
Document document = buildGuaranteeProviderFile();
9999
document.getTenant().setFirstName("Michel");
100100
((GuaranteeProviderFile) document.getFiles().get(0).getParsedFileAnalysis().getParsedFile())

dossierfacile-process-file/src/test/java/fr/dossierfacile/process/file/service/documentrules/IncomeTaxRulesValidationServiceTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private Document buildValidTaxDocument() throws Exception {
5959
}
6060

6161
@Test
62-
public void document_full_test() throws Exception {
62+
void document_full_test() throws Exception {
6363
Document document = buildValidTaxDocument();
6464
DocumentAnalysisReport report = DocumentAnalysisReport.builder()
6565
.document(document)
@@ -71,7 +71,7 @@ public void document_full_test() throws Exception {
7171
}
7272

7373
@Test
74-
public void document_ok_with_two_file() throws Exception {
74+
void document_ok_with_two_file() throws Exception {
7575
Document document = buildValidTaxDocument();
7676
document.getFiles().add(buildValidDfFileWithYear(LocalDate.now().minusMonths(31).getYear()));
7777
DocumentAnalysisReport report = DocumentAnalysisReport.builder()
@@ -84,7 +84,7 @@ public void document_ok_with_two_file() throws Exception {
8484
}
8585

8686
@Test
87-
public void document_full_test_with_preferredname() throws Exception {
87+
void document_full_test_with_preferredname() throws Exception {
8888
Document document = buildValidTaxDocument();
8989
document.getTenant().setPreferredName(document.getTenant().getLastName());
9090
document.getTenant().setLastName("AUTRE");
@@ -97,8 +97,9 @@ public void document_full_test_with_preferredname() throws Exception {
9797

9898
Assertions.assertThat(report.getAnalysisStatus()).isEqualTo(DocumentAnalysisStatus.CHECKED);
9999
}
100+
100101
@Test
101-
public void document_full_test_wrong_firstname() throws Exception {
102+
void document_full_test_wrong_firstname() throws Exception {
102103
Document document = buildValidTaxDocument();
103104
document.getTenant().setFirstName("Joseph");
104105
DocumentAnalysisReport report = DocumentAnalysisReport.builder()

dossierfacile-process-file/src/test/java/fr/dossierfacile/process/file/util/PersonNameComparatorTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,47 @@
55

66
class PersonNameComparatorTest {
77
@Test
8-
public void compare_name_should_be_ok() {
8+
void compare_name_should_be_ok() {
99
String givenFirstName = "Jean Phillipe";
1010
String givenLastName = "DE LA MARCHE";
1111
String fullName = "DE LA MARCHE PICQUET Edouard Jean Phillipe";
1212
Assertions.assertEquals(true, PersonNameComparator.bearlyEqualsTo(fullName, givenLastName, givenFirstName));
1313
}
1414

1515
@Test
16-
public void compare_name_should_be_ko_particule() {
16+
void compare_name_should_be_ko_particule() {
1717
String givenFirstName = "Jean Phillipe";
1818
String givenLastName = "DE LA ROSE";
1919
String fullName = "DE LA MARCHE PICQUET Edouard Jean Phillipe";
2020
Assertions.assertEquals(false, PersonNameComparator.bearlyEqualsTo(fullName, givenLastName, givenFirstName));
2121
}
2222

2323
@Test
24-
public void compare_name_should_be_ko() {
24+
void compare_name_should_be_ko() {
2525
String givenFirstName = "Jean Phillipe";
2626
String givenLastName = "DE LA MARCHE";
2727
String fullName = "PICQUET Edouard Jean Phillipe";
2828
Assertions.assertEquals(false, PersonNameComparator.bearlyEqualsTo(fullName, givenLastName, givenFirstName));
2929
}
3030

3131
@Test
32-
public void compare_name_should_be_ok2() {
32+
void compare_name_should_be_ok2() {
3333
String givenFirstName = "Jean Phillipe";
3434
String givenLastName = "MARCHE";
3535
String fullName = "ROSE-MARCHE Jean";
3636
Assertions.assertEquals(true, PersonNameComparator.bearlyEqualsTo(fullName, givenLastName, givenFirstName));
3737
}
3838

3939
@Test
40-
public void compare_name_should_be_ok_basc() {
40+
void compare_name_should_be_ok_basc() {
4141
String givenFirstName = "Jean";
4242
String givenLastName = "MARCHE";
4343
String fullName = "MARCHE Jean";
4444
Assertions.assertEquals(true, PersonNameComparator.bearlyEqualsTo(fullName, givenLastName, givenFirstName));
4545
}
4646

4747
@Test
48-
public void compare_name_should_be_nok_reverse() {
48+
void compare_name_should_be_nok_reverse() {
4949
String givenFirstName = "Marche";
5050
String givenLastName = "Jean";
5151
String fullName = "MARCHE Jean";

0 commit comments

Comments
 (0)