Big refactoring #77

Merged
flecomte merged 166 commits from refactoring-component-and-immutable into master 2021-03-24 19:06:07 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit c1a3590b2b - Show all commits

View File

@@ -80,7 +80,7 @@ class `Citizen routes` : BaseTest() {
fun `I cannot change my password if request is bad formatted`() { fun `I cannot change my password if request is bad formatted`() {
withIntegrationApplication { withIntegrationApplication {
`Given I have citizen`("Louis", "Breguet", id = "6cf2a19d-d15d-4ee5-b2a9-907afd26b525") `Given I have citizen`("Louis", "Breguet", id = "6cf2a19d-d15d-4ee5-b2a9-907afd26b525")
`When I send a PUT request`("/citizens/6cf2a19d-d15d-4ee5-b2a9-907afd26b525/password/change", Validate.ALL - Validate.RESPONSE_BODY) { `When I send a PUT request`("/citizens/6cf2a19d-d15d-4ee5-b2a9-907afd26b525/password/change", Validate.ALL - Validate.REQUEST_BODY) {
`authenticated as`("Louis", "Breguet") `authenticated as`("Louis", "Breguet")
`with body`(""" `with body`("""
{ {

View File

@@ -43,7 +43,7 @@ class `Register routes` : BaseTest() {
@Test @Test
fun `I cannot register if no username was sent`() { fun `I cannot register if no username was sent`() {
withIntegrationApplication { withIntegrationApplication {
`When I send a POST request`("/register", Validate.ALL - Validate.RESPONSE_BODY) { `When I send a POST request`("/register", Validate.ALL - Validate.REQUEST_BODY) {
`with body`(""" `with body`("""
{ {
"name": {"firstName":"George2", "lastName":"MICHEL2"}, "name": {"firstName":"George2", "lastName":"MICHEL2"},