Verified Commit 504f92a6 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

add dummy tests

parent 8963b2c3
* Extracts media files from Fedora repository
* Copyright (C) 2020 Memoriav
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <>.
package org.memobase
import org.apache.kafka.clients.producer.{MockProducer, ProducerRecord}
import org.apache.kafka.common.serialization.StringSerializer
import org.scalatest.funsuite.AnyFunSuite
import sys.process._
class AppTest extends AnyFunSuite {
test("An empty Set should be empty") {
test("A mock producer should produce mock data") {
val mp = new MockProducer[String, String]()
val pr = new ProducerRecord("test", "gugus", "data")
val fut = mp.send(pr)
assert (mp.commitCount() == 1)
test("Blabla") {
val test = Seq("echo", "-n", "hello").!!.trim
assert(test == "hello")
Supports Markdown
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