Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException
import org.jetbrains.exposed.exceptions.ExposedSQLException
import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.SchemaUtils
import org.jetbrains.exposed.sql.deleteAll
import org.jetbrains.exposed.sql.transactions.transaction
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import uk.co.baconi.oauth.api.common.authentication.AuthenticatedUsername
Expand Down Expand Up @@ -44,6 +46,13 @@ class RefreshTokenRepositoryIntegrationTest {

private val underTest = RefreshTokenRepository(database)

@AfterEach
fun cleanDatabase() {
transaction(database) {
RefreshTokenTable.deleteAll()
}
}

@Nested
inner class Insert {

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mockk = "1.14.6"
##
# JVM Test Versions
##
junit = "5.13.2"
junit = "6.0.1"
selenide = "7.12.1"
restAssured = "5.5.6"
commonsLang3 = "3.18.0"
Expand Down