Remove ValidationUnitTest.kt (#6562)

This commit is contained in:
Andrey Shcherbakov 2019-03-19 15:45:25 +01:00 committed by maibin
parent aaddee0a7e
commit 39a0eda437
2 changed files with 1 additions and 43 deletions

View File

@ -4,7 +4,7 @@ import org.junit.Test
import kotlin.test.assertTrue
import kotlin.test.assertFalse
class ValidationUnitTest {
class ValidationTest {
@Test
fun whenAmountIsOneAndNameIsAlice_thenTrue() {

View File

@ -1,42 +0,0 @@
package com.baeldung.annotations
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Test
class ValidationUnitTest {
@Test
fun whenAmountIsOneAndNameIsAlice_thenTrue() {
assertTrue(Validator().isValid(Item(1f, "Alice")))
}
@Test
fun whenAmountIsOneAndNameIsBob_thenTrue() {
assertTrue(Validator().isValid(Item(1f, "Bob")))
}
@Test
fun whenAmountIsMinusOneAndNameIsAlice_thenFalse() {
assertFalse(Validator().isValid(Item(-1f, "Alice")))
}
@Test
fun whenAmountIsMinusOneAndNameIsBob_thenFalse() {
assertFalse(Validator().isValid(Item(-1f, "Bob")))
}
@Test
fun whenAmountIsOneAndNameIsTom_thenFalse() {
assertFalse(Validator().isValid(Item(1f, "Tom")))
}
@Test
fun whenAmountIsMinusOneAndNameIsTom_thenFalse() {
assertFalse(Validator().isValid(Item(-1f, "Tom")))
}
}