Replaced Atrium assertion library to kotlin.test assertions
This commit is contained in:
parent
57ced4a88b
commit
79906f3dbb
|
@ -44,8 +44,6 @@ kotlin {
|
|||
dependencies {
|
||||
implementation kotlin("test-common")
|
||||
implementation kotlin("test-annotations-common")
|
||||
|
||||
implementation "ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,11 +60,6 @@ kotlin {
|
|||
|
||||
implementation "org.junit.jupiter:junit-jupiter:$junit5Version"
|
||||
runtimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
|
||||
|
||||
implementation "org.assertj:assertj-core:$assertJVersion"
|
||||
implementation "org.mockito:mockito-core:$mockitoVersion"
|
||||
|
||||
implementation "ch.tutteli.atrium:atrium-api-fluent-en_GB-jdk8:$atriumVersion"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -78,6 +71,12 @@ kotlin {
|
|||
}
|
||||
}
|
||||
|
||||
iosTest {
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-test"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package net.dankito.banking.bankfinder
|
||||
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.jupiter.api.Test
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
|
||||
abstract class BankFinderTestBase {
|
||||
|
@ -19,8 +19,8 @@ abstract class BankFinderTestBase {
|
|||
val result = underTest.findBankByBankCode("10000000")
|
||||
|
||||
// then
|
||||
assertThat(result).hasSize(1)
|
||||
assertThat(result[0].name).isEqualTo("Bundesbank")
|
||||
assertEquals(1, result.size)
|
||||
assertEquals("Bundesbank", result[0].name)
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ abstract class BankFinderTestBase {
|
|||
val result = underTest.findBankByNameBankCodeOrCity("starnberg")
|
||||
|
||||
// then
|
||||
assertThat(result).hasSize(71)
|
||||
assertEquals(71, result.size)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -41,9 +41,9 @@ abstract class BankFinderTestBase {
|
|||
val result = underTest.findBankByNameBankCodeOrCity("mizUh")
|
||||
|
||||
// then
|
||||
assertThat(result).hasSize(1)
|
||||
assertEquals(1, result.size)
|
||||
|
||||
assertThat(result.first().name).isEqualTo("Mizuho Bank Filiale Düsseldorf")
|
||||
assertEquals("Mizuho Bank Filiale Düsseldorf", result.first().name)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -53,9 +53,9 @@ abstract class BankFinderTestBase {
|
|||
val result = underTest.findBankByNameBankCodeOrCity("Berlin Sparkas")
|
||||
|
||||
// then
|
||||
assertThat(result).hasSize(3)
|
||||
assertEquals(3, result.size)
|
||||
|
||||
assertThat(result.first().name).isEqualTo("Landesbank Berlin - Berliner Sparkasse")
|
||||
assertEquals("Landesbank Berlin - Berliner Sparkasse", result.first().name)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -65,9 +65,9 @@ abstract class BankFinderTestBase {
|
|||
val result = underTest.findBankByNameBankCodeOrCity("Sparkas Berlin")
|
||||
|
||||
// then
|
||||
assertThat(result).hasSize(3)
|
||||
assertEquals(3, result.size)
|
||||
|
||||
assertThat(result.first().name).isEqualTo("Landesbank Berlin - Berliner Sparkasse")
|
||||
assertEquals("Landesbank Berlin - Berliner Sparkasse", result.first().name)
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue