Skip to content

Update Spring #371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/dependency-management.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ repositories {

dependencies {
api(enforcedPlatform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
api(enforcedPlatform("org.springframework.cloud:spring-cloud-dependencies:2023.0.5"))
api(enforcedPlatform("org.springframework.cloud:spring-cloud-dependencies:2024.0.1"))
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
springdoc = "2.6.0"
springBoot = "3.3.10"
springdoc = "2.8.6"
springBoot = "3.4.4"
springDependencyManagementPlugin = "1.1.7"
kotest = "5.9.1"
spotless = "7.0.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ internal class LabelEntityRepositoryTest(
@Test
internal fun `it should be able to find all labels by name`() {
underTest.count() shouldBeExactly 0
val savedLabels = underTest.saveAll(listOf(LABEL_0, LABEL_1))
val savedLabels = underTest.saveAll(listOf(LABEL_1, LABEL_2))
entityManager.flush()
underTest.count() shouldBeExactly 2
val actual = underTest.findAllByNameIn(listOf(LABEL_0.name, LABEL_1.name, "Nonexistent label"))
val actual = underTest.findAllByNameIn(listOf(LABEL_1.name, LABEL_2.name, "Nonexistent label"))
actual shouldBe savedLabels
}

private companion object {
private val LABEL_0 = LabelEntity(name = "Test label 0", description = "Test label description 0")
private val LABEL_1 = LabelEntity(name = "Test label 1", description = "Test label description 1")
private val LABEL_2 = LabelEntity(name = "Test label 2", description = "Test label description 2")
}
}
Loading