Commented out LuceneBankFinderTest as currently don't know how to reference BankFinder test artifact

This commit is contained in:
dankito 2020-09-07 20:06:49 +02:00
parent 8b1051092a
commit a821237641
2 changed files with 34 additions and 31 deletions

View File

@ -14,7 +14,8 @@ dependencies {
implementation "net.dankito.search:lucene-4-utils:$luceneUtilsVersion" implementation "net.dankito.search:lucene-4-utils:$luceneUtilsVersion"
testImplementation project(path: ':BankFinder', configuration: 'testOutput') // TODO: enable to reference BankFinder tests again to run LuceneBankFinderTest
// testImplementation project(path: ':BankFinder', configuration: 'testOutput')
testImplementation "org.junit.jupiter:junit-jupiter:$junit5Version" testImplementation "org.junit.jupiter:junit-jupiter:$junit5Version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"

View File

@ -1,31 +1,33 @@
package net.dankito.banking.bankfinder // TODO: enable to reference BankFinder tests again to run LuceneBankFinderTest
import net.dankito.utils.io.FileUtils //package net.dankito.banking.bankfinder
import org.junit.jupiter.api.AfterAll //
import java.io.File //import net.dankito.utils.io.FileUtils
//import org.junit.jupiter.api.AfterAll
//import java.io.File
class LuceneBankFinderTest : BankFinderTestBase() { //
//
companion object { //class LuceneBankFinderTest : BankFinderTestBase() {
private val IndexFolder = File("testData", "index") //
// companion object {
// private val IndexFolder = File("testData", "index")
@AfterAll //
@JvmStatic //
fun deleteIndex() { // @AfterAll
FileUtils().deleteFolderRecursively(IndexFolder.parentFile) // @JvmStatic
} // fun deleteIndex() {
} // FileUtils().deleteFolderRecursively(IndexFolder.parentFile)
// }
// }
override fun createBankFinder(): IBankFinder { //
return LuceneBankFinder(IndexFolder) //
} // override fun createBankFinder(): IBankFinder {
// return LuceneBankFinder(IndexFolder)
// }
init { //
underTest.preloadBankList() //
} // init {
// underTest.preloadBankList()
} // }
//
//}