Skip to content

Commit

Permalink
Fix ktlint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencesakura committed Mar 21, 2024
1 parent 200d263 commit 0891709
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ fun DbSetupBuilder.excel(location: String) {
* @param configure the function used to configure the Excel import
* @throws IllegalArgumentException if the source file was not found
*/
fun DbSetupBuilder.excel(location: String, configure: Import.Builder.() -> Unit) {
fun DbSetupBuilder.excel(
location: String,
configure: Import.Builder.() -> Unit,
) {
val excelBuilder = Import.excel(location)
excelBuilder.configure()
execute(excelBuilder.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test

class ExcelTest {

val url = "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1"

val username = "sa"
Expand All @@ -43,20 +42,22 @@ class ExcelTest {

@BeforeEach
fun setUp() {
val table_11 = """
val table11 =
"""
create table if not exists table_11 (
id integer primary key,
name varchar(100)
)
""".trimIndent()
val table_12 = """
""".trimIndent()
val table12 =
"""
create table if not exists table_12 (
id integer primary key,
name varchar(100)
)
""".trimIndent()
""".trimIndent()
dbSetup(destination) {
sql(table_11, table_12)
sql(table11, table12)
truncate("table_11", "table_12")
}.launch()
}
Expand Down

0 comments on commit 0891709

Please sign in to comment.