Skip to content
Snippets Groups Projects
Commit 3767fedc authored by Martins, Laurent's avatar Martins, Laurent
Browse files

fix #390 : unittest with invalid dev data

parent b7bc68fa
Branches
Tags
No related merge requests found
...@@ -37,7 +37,7 @@ class WebsiteDetailsResourceIntegrationTest { ...@@ -37,7 +37,7 @@ class WebsiteDetailsResourceIntegrationTest {
.then() .then()
.statusCode(200) .statusCode(200)
.body(is(Matcher.quoteReplacement( .body(is(Matcher.quoteReplacement(
"{\"websiteName\":\"Site d'exemple\",\"pageCount\":60,\"groups\":{\"1\":{\"name\":\"Groupe n°1\",\"availableRessourceTypes\":[\"IMAGE\",\"PDF\"],\"alert\":null},\"51\":{\"name\":\"Groupe n°2\",\"availableRessourceTypes\":[],\"alert\":null},\"101\":{\"name\":\"Groupe n°3\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageDetailDtos\":[{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"TERMINEE\"}]}"))); "{\"websiteName\":\"Site d'exemple\",\"pageCount\":60,\"groups\":{\"1\":{\"name\":\"Groupe n°1\",\"availableRessourceTypes\":[\"IMAGE\",\"PDF\"],\"alert\":null},\"51\":{\"name\":\"Groupe n°2\",\"availableRessourceTypes\":[],\"alert\":null},\"101\":{\"name\":\"Groupe n°3\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageDetailDtos\":[{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"},{\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_1\",\"title\":null,\"dataTransferedInBytes\":135500030,\"dataDecodedInBytes\":90500020,\"httpRequestsCount\":245,\"domElementsCount\":9110,\"analyseStatut\":\"INVALIDE\"}]}")));
} }
@Test @Test
......
...@@ -26,7 +26,7 @@ class WebsiteResourceIntegrationTest { ...@@ -26,7 +26,7 @@ class WebsiteResourceIntegrationTest {
.then() .then()
.statusCode(200) .statusCode(200)
.body(is(Matcher.quoteReplacement( .body(is(Matcher.quoteReplacement(
"[{\"id\":1,\"name\":\"Site d'exemple\",\"url\":\"https://www.site-web-d-exemple-inexistant.fr/\",\"lastAnalysis\":\"2000-01-02T00:00:00\",\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"1\":{\"name\":\"Groupe n°1\",\"availableRessourceTypes\":[\"IMAGE\",\"PDF\"],\"alert\":null},\"51\":{\"name\":\"Groupe n°2\",\"availableRessourceTypes\":[],\"alert\":null},\"101\":{\"name\":\"Groupe n°3\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":60,\"alert\":null},{\"id\":101,\"name\":\"Gitlab Page\",\"url\":\"https://misis-test-website-pub-numeco-misis-319bda392a27d3f07057d9125aa.gitlab-pages.din.developpement-durable.gouv.fr/\",\"lastAnalysis\":null,\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"201\":{\"name\":\"Mes Gitlab Pages\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":4,\"alert\":null},{\"id\":151,\"name\":\"Test API\",\"url\":\"https://accenture.fr\",\"lastAnalysis\":null,\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"251\":{\"name\":\"Groupe API 1\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":1,\"alert\":null},{\"id\":51,\"name\":\"Site partagé par John Doe (un@test.fr)\",\"url\":\"https://www.john-doe-site-web.fr/\",\"lastAnalysis\":\"2000-01-02T00:00:00\",\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"151\":{\"name\":\"Default\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":1,\"alert\":null}]"))); "[{\"id\":1,\"name\":\"Site d'exemple\",\"url\":\"https://www.site-web-d-exemple-inexistant.fr/\",\"lastAnalysis\":\"2000-01-02T00:00:00\",\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"1\":{\"name\":\"Groupe n°1\",\"availableRessourceTypes\":[\"IMAGE\",\"PDF\"],\"alert\":\"ERROR\"},\"51\":{\"name\":\"Groupe n°2\",\"availableRessourceTypes\":[],\"alert\":\"ERROR\"},\"101\":{\"name\":\"Groupe n°3\",\"availableRessourceTypes\":[],\"alert\":\"ERROR\"}},\"pageCount\":60,\"alert\":\"ERROR\"},{\"id\":101,\"name\":\"Gitlab Page\",\"url\":\"https://misis-test-website-pub-numeco-misis-319bda392a27d3f07057d9125aa.gitlab-pages.din.developpement-durable.gouv.fr/\",\"lastAnalysis\":null,\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"201\":{\"name\":\"Mes Gitlab Pages\",\"availableRessourceTypes\":[],\"alert\":\"ERROR\"}},\"pageCount\":4,\"alert\":\"ERROR\"},{\"id\":151,\"name\":\"Spote\",\"url\":\"https://spote.developpement-durable.gouv.fr/\",\"lastAnalysis\":null,\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"251\":{\"name\":\"Sitemap Spote\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":0,\"alert\":null},{\"id\":201,\"name\":\"Test API\",\"url\":\"https://accenture.fr\",\"lastAnalysis\":null,\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"301\":{\"name\":\"Groupe API 1\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":1,\"alert\":null},{\"id\":51,\"name\":\"Site partagé par John Doe (un@test.fr)\",\"url\":\"https://www.john-doe-site-web.fr/\",\"lastAnalysis\":\"2000-01-02T00:00:00\",\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"151\":{\"name\":\"Default\",\"availableRessourceTypes\":[],\"alert\":\"ERROR\"}},\"pageCount\":1,\"alert\":\"ERROR\"}]")));
} }
@Test @Test
...@@ -69,7 +69,7 @@ class WebsiteResourceIntegrationTest { ...@@ -69,7 +69,7 @@ class WebsiteResourceIntegrationTest {
.then() .then()
.statusCode(200) .statusCode(200)
.body(is(Matcher.quoteReplacement( .body(is(Matcher.quoteReplacement(
"{\"id\":1,\"name\":\"Site d'exemple\",\"url\":\"https://www.site-web-d-exemple-inexistant.fr/\",\"lastAnalysis\":\"2000-01-02T00:00:00\",\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"1\":{\"name\":\"Groupe n°1\",\"availableRessourceTypes\":[\"IMAGE\",\"PDF\"],\"alert\":null},\"51\":{\"name\":\"Groupe n°2\",\"availableRessourceTypes\":[],\"alert\":null},\"101\":{\"name\":\"Groupe n°3\",\"availableRessourceTypes\":[],\"alert\":null}},\"pageCount\":60,\"alert\":null}"))); "{\"id\":1,\"name\":\"Site d'exemple\",\"url\":\"https://www.site-web-d-exemple-inexistant.fr/\",\"lastAnalysis\":\"2000-01-02T00:00:00\",\"nextAnalysis\":\"2000-01-01T01:00:00\",\"groups\":{\"1\":{\"name\":\"Groupe n°1\",\"availableRessourceTypes\":[\"IMAGE\",\"PDF\"],\"alert\":\"ERROR\"},\"51\":{\"name\":\"Groupe n°2\",\"availableRessourceTypes\":[],\"alert\":\"ERROR\"},\"101\":{\"name\":\"Groupe n°3\",\"availableRessourceTypes\":[],\"alert\":\"ERROR\"}},\"pageCount\":60,\"alert\":\"ERROR\"}")));
} }
@Test @Test
......
...@@ -35,7 +35,7 @@ class WebsiteSettingsDtoRessourceIntegrationTest { ...@@ -35,7 +35,7 @@ class WebsiteSettingsDtoRessourceIntegrationTest {
.get(suiviId) .get(suiviId)
.then() .then()
.statusCode(200) .statusCode(200)
.body(is(Matcher.quoteReplacement("{\"users\":[{\"id\":1,\"name\":\"admin\",\"email\":\"admin@test.fr\",\"admin\":true}],\"groupOfPagesFormDtos\":[{\"id\":1,\"name\":\"Groupe n°1\",\"periodiciteDuSuivi\":\"QUOTIDIEN\",\"methodeDeCreationDeGroupe\":\"MANUELLE\",\"pages\":[{\"id\":1,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_1\"},{\"id\":2,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_1\"},{\"id\":3,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_1\"},{\"id\":4,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_1\"},{\"id\":5,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_1\"},{\"id\":6,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_1\"},{\"id\":7,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_1\"},{\"id\":8,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_1\"},{\"id\":9,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_1\"},{\"id\":10,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_1\"},{\"id\":11,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_1\"},{\"id\":12,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_1\"},{\"id\":13,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_1\"},{\"id\":14,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_1\"},{\"id\":15,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_1\"},{\"id\":16,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_1\"},{\"id\":17,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_1\"},{\"id\":18,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_1\"},{\"id\":19,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_1\"},{\"id\":20,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_1\"}]},{\"id\":51,\"name\":\"Groupe n°2\",\"periodiciteDuSuivi\":\"QUOTIDIEN\",\"methodeDeCreationDeGroupe\":\"MANUELLE\",\"pages\":[{\"id\":21,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_2\"},{\"id\":22,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_2\"},{\"id\":23,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_2\"},{\"id\":24,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_2\"},{\"id\":25,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_2\"},{\"id\":26,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_2\"},{\"id\":27,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_2\"},{\"id\":28,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_2\"},{\"id\":29,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_2\"},{\"id\":30,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_2\"},{\"id\":31,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_2\"},{\"id\":32,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_2\"},{\"id\":33,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_2\"},{\"id\":34,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_2\"},{\"id\":35,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_2\"},{\"id\":36,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_2\"},{\"id\":37,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_2\"},{\"id\":38,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_2\"},{\"id\":39,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_2\"},{\"id\":40,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_2\"}]},{\"id\":101,\"name\":\"Groupe n°3\",\"periodiciteDuSuivi\":\"QUOTIDIEN\",\"methodeDeCreationDeGroupe\":\"MANUELLE\",\"pages\":[{\"id\":41,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_3\"},{\"id\":42,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_3\"},{\"id\":43,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_3\"},{\"id\":44,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_3\"},{\"id\":45,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_3\"},{\"id\":46,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_3\"},{\"id\":47,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_3\"},{\"id\":48,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_3\"},{\"id\":49,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_3\"},{\"id\":50,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_3\"},{\"id\":51,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_3\"},{\"id\":52,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_3\"},{\"id\":53,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_3\"},{\"id\":54,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_3\"},{\"id\":55,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_3\"},{\"id\":56,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_3\"},{\"id\":57,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_3\"},{\"id\":58,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_3\"},{\"id\":59,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_3\"},{\"id\":60,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_3\"}]}]}"))); .body(is(Matcher.quoteReplacement("{\"users\":[{\"id\":1,\"name\":\"admin\",\"email\":\"admin@test.fr\",\"admin\":true}],\"groupOfPagesFormDtos\":[{\"id\":1,\"name\":\"Groupe n°1\",\"periodiciteDuSuivi\":\"QUOTIDIEN\",\"methodeDeCreationDeGroupe\":\"MANUELLE\",\"pages\":[{\"id\":1,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_1\"},{\"id\":2,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_1\"},{\"id\":3,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_1\"},{\"id\":4,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_1\"},{\"id\":5,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_1\"},{\"id\":6,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_1\"},{\"id\":7,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_1\"},{\"id\":8,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_1\"},{\"id\":9,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_1\"},{\"id\":10,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_1\"},{\"id\":11,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_1\"},{\"id\":12,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_1\"},{\"id\":13,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_1\"},{\"id\":14,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_1\"},{\"id\":15,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_1\"},{\"id\":16,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_1\"},{\"id\":17,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_1\"},{\"id\":18,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_1\"},{\"id\":19,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_1\"},{\"id\":20,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_1\"}],\"sitemap\":null},{\"id\":51,\"name\":\"Groupe n°2\",\"periodiciteDuSuivi\":\"QUOTIDIEN\",\"methodeDeCreationDeGroupe\":\"MANUELLE\",\"pages\":[{\"id\":21,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_2\"},{\"id\":22,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_2\"},{\"id\":23,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_2\"},{\"id\":24,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_2\"},{\"id\":25,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_2\"},{\"id\":26,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_2\"},{\"id\":27,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_2\"},{\"id\":28,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_2\"},{\"id\":29,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_2\"},{\"id\":30,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_2\"},{\"id\":31,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_2\"},{\"id\":32,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_2\"},{\"id\":33,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_2\"},{\"id\":34,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_2\"},{\"id\":35,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_2\"},{\"id\":36,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_2\"},{\"id\":37,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_2\"},{\"id\":38,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_2\"},{\"id\":39,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_2\"},{\"id\":40,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_2\"}],\"sitemap\":null},{\"id\":101,\"name\":\"Groupe n°3\",\"periodiciteDuSuivi\":\"QUOTIDIEN\",\"methodeDeCreationDeGroupe\":\"MANUELLE\",\"pages\":[{\"id\":41,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page1_3\"},{\"id\":42,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page2_3\"},{\"id\":43,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page3_3\"},{\"id\":44,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page4_3\"},{\"id\":45,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page5_3\"},{\"id\":46,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page6_3\"},{\"id\":47,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page7_3\"},{\"id\":48,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page8_3\"},{\"id\":49,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page9_3\"},{\"id\":50,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page10_3\"},{\"id\":51,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page11_3\"},{\"id\":52,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page12_3\"},{\"id\":53,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page13_3\"},{\"id\":54,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page14_3\"},{\"id\":55,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page15_3\"},{\"id\":56,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page16_3\"},{\"id\":57,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page17_3\"},{\"id\":58,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page18_3\"},{\"id\":59,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page19_3\"},{\"id\":60,\"url\":\"https://www.site-web-d-exemple-inexistant.fr/page20_3\"}],\"sitemap\":null}]}")));
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment