Skip to content

Commit 1a1aff0

Browse files
author
monosoul
committed
fix CommandInvokerTest
1 parent d8cf58f commit 1a1aff0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/test/kotlin/com/github/monosoul/git/updateindex/extended/support/CommandInvokerTest.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@ internal class CommandInvokerTest {
8989

9090
verifyOrder {
9191
vcsManager.getVcsRootFor(files[0])
92-
dirtyScopeManager.filesDirty(withArg {
93-
assertThat(it).isEmpty()
94-
}, null)
9592
}
9693
verifyAll {
9794
git wasNot Called
9895
gitLineHandlerFactory wasNot Called
9996
gitLineHandler wasNot Called
97+
dirtyScopeManager wasNot Called
10098
}
10199
}
102100

@@ -122,9 +120,9 @@ internal class CommandInvokerTest {
122120
})
123121
git.runCommand(gitLineHandler)
124122
gitCommandResult.success()
125-
dirtyScopeManager.filesDirty(withArg {
126-
assertThat(it).containsExactlyInAnyOrder(*files)
127-
}, null)
123+
}
124+
verify(exactly = files.size) {
125+
dirtyScopeManager.fileDirty(any<VirtualFile>())
128126
}
129127
verify(inverse = true) {
130128
appender.doAppend(any())
@@ -160,9 +158,9 @@ internal class CommandInvokerTest {
160158
assertThat(it.message).isEqualTo(error)
161159
assertThat(it.getLevel()).isEqualTo(ERROR)
162160
})
163-
dirtyScopeManager.filesDirty(withArg {
164-
assertThat(it).containsExactlyInAnyOrder(*files)
165-
}, null)
161+
}
162+
verify(exactly = files.size) {
163+
dirtyScopeManager.fileDirty(any<VirtualFile>())
166164
}
167165
}
168166

0 commit comments

Comments
 (0)