diff --git a/apps/coordinator/src/test/kotlin/no/iktdev/mediaprocessing/coordinator/reader/KafkaTestBase.kt b/apps/coordinator/src/test/kotlin/no/iktdev/mediaprocessing/coordinator/reader/KafkaTestBase.kt deleted file mode 100644 index 391a51b6..00000000 --- a/apps/coordinator/src/test/kotlin/no/iktdev/mediaprocessing/coordinator/reader/KafkaTestBase.kt +++ /dev/null @@ -1,32 +0,0 @@ -package no.iktdev.mediaprocessing.coordinator.reader -/* -import no.iktdev.mediaprocessing.shared.kafka.core.DefaultConsumer -import no.iktdev.mediaprocessing.shared.kafka.core.DefaultMessageListener -import no.iktdev.mediaprocessing.shared.kafka.core.DefaultProducer -import org.apache.kafka.clients.admin.AdminClient -import org.junit.jupiter.api.extension.ExtendWith -import org.mockito.InjectMocks -import org.mockito.Mock -import org.mockito.junit.jupiter.MockitoExtension -import org.springframework.kafka.core.KafkaTemplate -import org.springframework.kafka.core.ProducerFactory - -@ExtendWith(MockitoExtension::class) -class KafkaTestBase { - - @Mock - lateinit var kafkaTemplate: KafkaTemplate - - @Mock - lateinit var adminClient: AdminClient - - @InjectMocks - lateinit var defaultProducer: DefaultProducer - - @InjectMocks - lateinit var defaultConsumer: DefaultConsumer - - @InjectMocks - lateinit var defaultListener: DefaultMessageListener - -}*/ \ No newline at end of file diff --git a/shared/common/src/main/kotlin/no/iktdev/mediaprocessing/shared/common/parsing/FileNameParser.kt b/shared/common/src/main/kotlin/no/iktdev/mediaprocessing/shared/common/parsing/FileNameParser.kt index 0405b80c..cac6da9d 100644 --- a/shared/common/src/main/kotlin/no/iktdev/mediaprocessing/shared/common/parsing/FileNameParser.kt +++ b/shared/common/src/main/kotlin/no/iktdev/mediaprocessing/shared/common/parsing/FileNameParser.kt @@ -1,6 +1,5 @@ package no.iktdev.mediaprocessing.shared.common.parsing -import org.apache.kafka.common.protocol.types.Field.Str class FileNameParser(val fileName: String) { var cleanedFileName: String @@ -122,7 +121,7 @@ class FileNameParser(val fileName: String) { fun removeDot(input: String): String { //var text = Regex("(?<=\\s)\\.|\\.(?=\\s)").replace(input, "") //return Regex("\\.(?