Skip to content

Commit

Permalink
Update src/test/kotlin/pt/up/fe/ni/website/backend/utils/mockmvc/Mock…
Browse files Browse the repository at this point in the history
…MvcMultipartBuilder.kt

Co-authored-by: Rita Lopes <93883163+MRita443@users.noreply.github.com>
  • Loading branch information
AvilaAndre and MRita443 authored Nov 6, 2024
1 parent 693afa8 commit c796bac
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ class MockMvcMultipartBuilder(
return this
}

fun asDeleteMethod(): MockMvcMultipartBuilder {
multipart.with(
{
it.method = "DELETE"
it
}
)
fun asDeleteMethod(): MockMvcMultipartBuilder {
multipart.with {
it.method = "DELETE"
it
}
return this
}

fun perform(): ResultActions {
return mockMvc.perform(multipart)
}
Expand Down

0 comments on commit c796bac

Please sign in to comment.