Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
chore: upgrade to Spring Boot 2.2.2 and Kotlin 1.3.61
Browse files Browse the repository at this point in the history
  • Loading branch information
jnizet committed Dec 6, 2019
1 parent a7ab9dc commit dcd71cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions backend/build.gradle.kts
Expand Up @@ -14,15 +14,15 @@ buildscript {
}

plugins {
val kotlinVersion = "1.3.50"
val kotlinVersion = "1.3.61"

java
jacoco
kotlin("jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
id("org.jetbrains.kotlin.plugin.jpa") version kotlinVersion
id("org.jetbrains.kotlin.plugin.noarg") version kotlinVersion
id("org.springframework.boot") version "2.2.1.RELEASE"
id("org.springframework.boot") version "2.2.2.RELEASE"
id("io.spring.dependency-management") version "1.0.8.RELEASE"
id("org.flywaydb.flyway") version "6.0.4"
id("com.gorylenko.gradle-git-properties") version "2.0.0"
Expand Down
Expand Up @@ -9,7 +9,6 @@ import org.globe42.storage.FileDTO
import org.globe42.storage.ReadableFile
import org.globe42.storage.StorageService
import org.globe42.test.GlobeMvcTest
import org.globe42.web.test.asyncDispatch
import org.globe42.web.test.jsonValue
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -83,7 +82,7 @@ class PersonFileControllerMvcTest(@Autowired private val mvc: MockMvc) {
}
every { mockStorageService.get(directory, theFile.name)} returns readableFile

mvc.get("/api/persons/{personId}/files/{name}", person.id, theFile.name).asyncDispatch(mvc).andExpect {
mvc.get("/api/persons/{personId}/files/{name}", person.id, theFile.name).asyncDispatch().andExpect {
status { isOk }
header { longValue(HttpHeaders.CONTENT_LENGTH, 5L) }
content {
Expand Down
8 changes: 0 additions & 8 deletions backend/src/test/kotlin/org/globe42/web/test/MockMvcDsl.kt
Expand Up @@ -11,11 +11,3 @@ fun MockMvcResultMatchersDsl.jsonValue(expression: String, value: Any?) {
jsonPath(expression) { value(it) }
} ?: jsonPath(expression, CoreMatchers.nullValue())
}

fun ResultActionsDsl.asyncDispatch(mockMvc: MockMvc): ResultActionsDsl {
return this.andExpect {
request { asyncStarted() }
}.andReturn().let {
ResultActionsDsl(mockMvc.perform(MockMvcRequestBuilders.asyncDispatch(it)))
}
}

0 comments on commit dcd71cd

Please sign in to comment.