Skip to content

Commit

Permalink
chore: misc Spring Boot 3.3.x migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal committed Jul 19, 2024
1 parent d8a8e3e commit 210cb71
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
}
}

extra["springCloudVersion"] = "2023.0.0"
extra["springCloudVersion"] = "2023.0.3"

plugins {
// https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#reacting-to-other-plugins.java
Expand Down
1 change: 1 addition & 0 deletions search-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies {

developmentOnly("org.springframework.boot:spring-boot-devtools")

runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("org.postgresql:postgresql")

testImplementation("org.testcontainers:postgresql")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class NgsiLdVocabPropertyInstance private constructor(
ensureNotNull(vocab) {
BadRequestDataException("VocabProperty $name has an instance without a vocab member")
}
ensure(vocab is List<*> && vocab.all { it is Map<*, *> && it.size == 1 && it.containsKey(JSONLD_ID) }) {
ensure(vocab.all { it is Map<*, *> && it.size == 1 && it.containsKey(JSONLD_ID) }) {
BadRequestDataException(
"VocabProperty $name has a vocab member that is not a string, nor an array of string"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.egm.stellio.shared.util.JsonUtils.deserializeAsMap
import com.egm.stellio.shared.util.JsonUtils.serializeObject
import com.egm.stellio.shared.web.DEFAULT_TENANT_NAME
import kotlinx.coroutines.test.runTest
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
Expand Down Expand Up @@ -156,15 +157,7 @@ class JsonUtilsTests {
val exception = assertThrows<InvalidRequestException> {
rawEntity.deserializeAsMap()
}
Assertions.assertEquals(
"""
Unexpected character (',' (code 44)): was expecting double-quote to start field name
at [Source: (String)"{
"id": "urn:ngsi-ld:Device:01234",,
"type": "Device"
}"; line: 2, column: 39]
""".trimIndent(),
exception.message
)
assertThat(exception.message)
.startsWith("Unexpected character (',' (code 44)): was expecting double-quote to start field name")
}
}
1 change: 1 addition & 0 deletions subscription-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies {

developmentOnly("org.springframework.boot:spring-boot-devtools")

runtimeOnly("org.flywaydb:flyway-database-postgresql")
runtimeOnly("org.postgresql:postgresql")

testImplementation("org.wiremock:wiremock-standalone:3.3.1")
Expand Down

0 comments on commit 210cb71

Please sign in to comment.