Convert unit tests to munit

This commit is contained in:
Eike Kettner
2021-03-10 19:48:56 +01:00
parent 8ff83656ce
commit 6a63694a3e
30 changed files with 175 additions and 197 deletions

View File

@ -3,14 +3,14 @@ package docspell.store.generator
import java.time.LocalDate
import docspell.store.records._
import minitest._
import munit._
import docspell.common._
import docspell.query.ItemQueryParser
import docspell.store.queries.AttachCountTable
import docspell.store.qb.DSL._
import docspell.store.qb.generator.{ItemQueryGenerator, Tables}
object ItemQueryGeneratorTest extends SimpleTestSuite {
class ItemQueryGeneratorTest extends FunSuite {
import docspell.store.impl.DoobieMeta._
val tables = Tables(

View File

@ -1,10 +1,10 @@
package docspell.store.qb
import minitest._
import munit._
import docspell.store.qb.model._
import docspell.store.qb.DSL._
object QueryBuilderTest extends SimpleTestSuite {
class QueryBuilderTest extends FunSuite {
test("simple") {
val c = CourseRecord.as("c")

View File

@ -1,11 +1,11 @@
package docspell.store.qb.impl
import minitest._
import munit._
import docspell.store.qb._
import docspell.store.qb.DSL._
import docspell.store.qb.model.{CourseRecord, PersonRecord}
object ConditionBuilderTest extends SimpleTestSuite {
class ConditionBuilderTest extends FunSuite {
val c = CourseRecord.as("c")
val p = PersonRecord.as("p")

View File

@ -1,11 +1,11 @@
package docspell.store.qb.impl
import minitest._
import munit._
import docspell.store.qb._
import docspell.store.qb.DSL._
import docspell.store.qb.model.{CourseRecord, PersonRecord}
object DSLTest extends SimpleTestSuite {
class DSLTest extends FunSuite {
val course = CourseRecord.as("c")
val person = PersonRecord.as("p")

View File

@ -1,11 +1,11 @@
package docspell.store.qb.impl
import minitest._
import munit._
import docspell.store.qb._
import docspell.store.qb.model._
import docspell.store.qb.DSL._
object SelectBuilderTest extends SimpleTestSuite {
class SelectBuilderTest extends FunSuite {
test("basic fragment") {
val c = CourseRecord.as("c")

View File

@ -1,8 +1,8 @@
package docspell.store.queries
import minitest._
import munit._
object QueryWildcardTest extends SimpleTestSuite {
class QueryWildcardTest extends FunSuite {
test("replace prefix") {
assertEquals("%name", QueryWildcard("*name"))