This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
forked from spring-projects-experimental/spring-fu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '056b2351a066b1741f7ce50e173c3d667dbf9357' into spring-s…
…ecurity * commit '056b2351a066b1741f7ce50e173c3d667dbf9357': Polishing Polishing Remove manual GraalVM native image configuration Focus GraalVM native image support on spring-projects/spring-framework#22968 Avoid exposing AbstractDsl#initialize in public API Add tests for the R2DBC mapping to simple types Fix documentation Avoid specifying reactor-kotlin-extensions version Fix R2DBC transitive dependencies
- Loading branch information
Showing
20 changed files
with
130 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
bootVersion=2.2.0.BUILD-SNAPSHOT | ||
coroutinesVersion=1.2.1 | ||
kotlin.version=1.3.31 | ||
springDataR2dbcVersion=1.0.0.BUILD-SNAPSHOT | ||
r2dbcVersion=Arabba-BUILD-SNAPSHOT | ||
springDataR2dbcVersion=1.0.0.M2 | ||
r2dbcVersion=Arabba-M8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
samples/kofu-coroutines-r2dbc/src/test/kotlin/com/sample/UserRepositoryTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.sample | ||
|
||
import kotlinx.coroutines.runBlocking | ||
import org.junit.jupiter.api.AfterAll | ||
import org.junit.jupiter.api.Assertions.assertEquals | ||
import org.junit.jupiter.api.BeforeAll | ||
import org.junit.jupiter.api.Test | ||
import org.springframework.beans.factory.getBean | ||
import org.springframework.boot.WebApplicationType | ||
import org.springframework.context.ConfigurableApplicationContext | ||
import org.springframework.fu.kofu.application | ||
|
||
class UserRepositoryTests { | ||
|
||
private val dataApp = application(WebApplicationType.NONE) { | ||
enable(dataConfig) | ||
} | ||
|
||
private lateinit var context: ConfigurableApplicationContext | ||
|
||
@BeforeAll | ||
fun beforeAll() { | ||
context = app.run(profiles = "test") | ||
} | ||
|
||
@Test | ||
fun count() { | ||
val repository = context.getBean<UserRepository>() | ||
runBlocking { | ||
assertEquals(3, repository.count()) | ||
} | ||
} | ||
|
||
@AfterAll | ||
fun afterAll() { | ||
context.close() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.