[git] fix branch and user test
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Tue, 15 Nov 2016 20:38:15 +0000 (23:38 +0300)
committerJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Wed, 16 Nov 2016 16:47:13 +0000 (19:47 +0300)
plugins/git4idea/tests/git4idea/log/GitLogProviderTest.java

index 03190ab7c3a8c91bcf5f6fdadb3cd0312518b6af..9366c8a13444c589365a2c12abeeafc55b1dc4e4 100644 (file)
@@ -151,8 +151,10 @@ public class GitLogProviderTest extends GitSingleRepoTest {
   public void test_filter_by_branch_and_user() throws Exception {
     List<String> hashes = generateHistoryForFilters(false);
     VcsLogBranchFilter branchFilter = VcsLogBranchFilterImpl.fromBranch("feature");
-    VcsLogUserFilter userFilter = new VcsLogUserFilterImpl(singleton(GitTestUtil.USER_NAME), Collections.<VirtualFile, VcsUser>emptyMap(),
-                                                           Collections.<VcsUser>emptySet());
+    VcsUserImpl user = new VcsUserImpl(GitTestUtil.USER_NAME, GitTestUtil.USER_EMAIL);
+    VcsLogUserFilter userFilter = new VcsLogUserFilterImpl(singleton(GitTestUtil.USER_NAME),
+                                                           Collections.emptyMap(),
+                                                           singleton(user));
     List<String> actualHashes = getFilteredHashes(branchFilter, userFilter);
     assertEquals(hashes, actualHashes);
   }