Commit 3011fe46 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

style updates

parent 62f46190
Pipeline #7224 failed with stages
in 2 minutes and 55 seconds
......@@ -18,11 +18,9 @@
package org.memobase
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import com.github.doyaaaaaken.kotlincsv.util.MalformedCSVException
import org.apache.logging.log4j.LogManager
import java.io.File
import kotlin.system.exitProcess
import org.apache.logging.log4j.LogManager
class App {
companion object {
......@@ -34,7 +32,6 @@ class App {
val sftp = SftpClient(settings.sftpSettings)
val validator = FileValidation(sftp)
val files = sftp.listFiles(settings.appSettings["directory"].orEmpty()).map { File(it) }
log.error(files)
......@@ -55,5 +52,4 @@ class App {
}
}
}
}
\ No newline at end of file
}
......@@ -18,9 +18,9 @@
package org.memobase
import com.beust.klaxon.Klaxon
import java.util.Properties
import org.apache.kafka.clients.producer.KafkaProducer
import org.apache.kafka.clients.producer.ProducerRecord
import java.util.*
class Producer(props: Properties, private val topic: String) {
......@@ -32,11 +32,9 @@ class Producer(props: Properties, private val topic: String) {
}
fun sendReport(report: Report) {
// TODO: Implement Report message!
instance.send(ProducerRecord(reportingTopic, report.id, Klaxon().toJsonString(report)))
}
fun close() {
instance.flush()
instance.close()
......
......@@ -25,11 +25,9 @@ class Tests {
@Test
fun testCase1() {
assertAll("test case 1",
{ assertEquals("null", "null") },
{ assertEquals("null", "null") }
)
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment