Adapt to BranchNameKey refactoring Change-Id: I5a2df924d230b419643ac6916603c52269b047b6
diff --git a/src/test/java/com/googlesource/gerrit/plugins/findowners/FindOwners.java b/src/test/java/com/googlesource/gerrit/plugins/findowners/FindOwners.java index d31be19..9e3e3d2 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/findowners/FindOwners.java +++ b/src/test/java/com/googlesource/gerrit/plugins/findowners/FindOwners.java
@@ -27,7 +27,7 @@ import com.google.gerrit.extensions.client.ChangeStatus; import com.google.gerrit.extensions.common.ChangeInfo; import com.google.gerrit.extensions.common.ChangeInput; -import com.google.gerrit.reviewdb.client.Branch; +import com.google.gerrit.reviewdb.client.BranchNameKey; import com.google.gerrit.reviewdb.client.Project; import com.google.gerrit.reviewdb.client.RefNames; import com.google.gerrit.server.account.Emails; @@ -209,7 +209,7 @@ } protected BranchApi createBranch(String branch) throws Exception { - return createBranch(Branch.nameKey(project, branch)); + return createBranch(BranchNameKey.create(project, branch)); } protected PushOneCommit.Result createChangeInBranch(