Skip to content

Commit

Permalink
Remove a test made obsolete by #776
Browse files Browse the repository at this point in the history
  • Loading branch information
Raibaz committed Jan 13, 2022
1 parent bd543f6 commit 683f23c
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions mockk/common/src/test/kotlin/io/mockk/it/VerifyTest.kt
Expand Up @@ -175,31 +175,6 @@ class VerifyTest {

}

/**
* See issue #389.
*/
@Test
internal fun verifyUsingVerifyAllAndWithArg() {
val repositoryMock = mockk<TweetRepository>(relaxed = true)

repositoryMock.persist(Tweet(1, "first tweet"))
repositoryMock.persist(Tweet(2, "second tweet"))


verifyAll {
repositoryMock.persist(
withArg {
assertEquals(it.id, 1)
assertEquals(it.text, "first tweet")
})
repositoryMock.persist(
withArg {
assertEquals(it.id, 2)
assertEquals(it.text, "second tweet")
})
}
}

class Bar {
fun baz(foo: String) {
println(foo)
Expand All @@ -215,12 +190,4 @@ class VerifyTest {
class MockCls {
fun op(a: Int) = a + 1
}

class Tweet(val id: Int, val text: String)

interface TweetRepository {

fun persist(tweet: Tweet)

}
}

0 comments on commit 683f23c

Please sign in to comment.