From 92f2b90f755f79254737eec394232066d5eb73a0 Mon Sep 17 00:00:00 2001 From: bayang Date: Fri, 13 May 2022 12:02:53 +0200 Subject: [PATCH] fix: on import do not try to fetch metadata if binary not configured #3 --- build.gradle.kts | 6 +++- src/jelu-ui/src/components/Imports.vue | 26 +++++++++++++-- .../jelu/service/imports/CsvImportService.kt | 16 ++++++---- .../service/imports/CsvImportServiceTest.kt | 32 +++++++++++++++++++ 4 files changed, 70 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index adab0e04..92550c62 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -69,7 +69,11 @@ dependencies { implementation("org.apache.commons:commons-csv:1.9.0") - testImplementation("org.springframework.boot:spring-boot-starter-test") + testImplementation("org.springframework.boot:spring-boot-starter-test") { + exclude(module = "mockito-core") + } + testImplementation("io.mockk:mockk:1.12.4") + testImplementation("com.ninja-squad:springmockk:3.1.1") testImplementation("io.projectreactor:reactor-test") val springdocVersion = "1.6.6" diff --git a/src/jelu-ui/src/components/Imports.vue b/src/jelu-ui/src/components/Imports.vue index 9ba46146..d4421922 100644 --- a/src/jelu-ui/src/components/Imports.vue +++ b/src/jelu-ui/src/components/Imports.vue @@ -1,5 +1,7 @@