Adapt to change in Gerrit core that renames the method to create test changes The rename is being done by change Idc4d38b06c. Change-Id: Ib27b3ce978bdf2c672b95392e3e547bbfe12872b Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/SkipCodeOwnerConfigValidationPushOptionIT.java b/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/SkipCodeOwnerConfigValidationPushOptionIT.java index 8b2c6bf..50d1289 100644 --- a/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/SkipCodeOwnerConfigValidationPushOptionIT.java +++ b/javatests/com/google/gerrit/plugins/codeowners/acceptance/api/SkipCodeOwnerConfigValidationPushOptionIT.java
@@ -166,7 +166,7 @@ @Test public void codeOwnersSkipOptionIsOmittedIfChangeDoesNotTouchCodeOwnerConfigs() throws Exception { requestScopeOperations.setApiUser(admin.id()); - Change.Id changeId = changeOperations.newChange().project(project).create(); + Change.Id changeId = changeOperations.newChange().project(project).createV1(); ValidationOptionInfos validationOptionsInfos = gApi.changes().id(project.get(), changeId.get()).getValidationOptions(); ValidationOptionInfos branchValidationOptionInfos = @@ -203,7 +203,7 @@ CodeOwnerConfig.builder(codeOwnerConfigKey, TEST_REVISION) .addCodeOwnerSet(CodeOwnerSet.createWithoutPathExpressions(admin.email())) .build())) - .create(); + .createV1(); } private String format(CodeOwnerConfig codeOwnerConfig) throws Exception {
diff --git a/javatests/com/google/gerrit/plugins/codeowners/backend/ChangedFilesTest.java b/javatests/com/google/gerrit/plugins/codeowners/backend/ChangedFilesTest.java index 7aaef7c..05f2fe3 100644 --- a/javatests/com/google/gerrit/plugins/codeowners/backend/ChangedFilesTest.java +++ b/javatests/com/google/gerrit/plugins/codeowners/backend/ChangedFilesTest.java
@@ -244,7 +244,7 @@ .branch("master") .file(file1) .content("base content") - .create(); + .createV1(); approveAndSubmit(baseChange); // Create another branch @@ -262,7 +262,7 @@ .branch("master") .file(file1) .content("master content") - .create(); + .createV1(); approveAndSubmit(changeInMaster); // Create a change in the other branch and that touches file1 and creates file2. @@ -275,7 +275,7 @@ .content("other content") .file(file2) .content("content") - .create(); + .createV1(); approveAndSubmit(changeInOtherBranch); // Create a merge change with a conflict resolution for file1 and file2 with the same content as @@ -293,7 +293,7 @@ .content("merged content") .file(file2) .content("content") - .create(); + .createV1(); ImmutableList<ChangedFile> changedFilesSet = changedFiles.getFromDiffCache( @@ -344,7 +344,7 @@ .branch("master") .file(file) .content("base content") - .create(); + .createV1(); approveAndSubmit(baseChange); // Create another branch @@ -362,7 +362,7 @@ .branch("master") .file(file) .content("master content") - .create(); + .createV1(); approveAndSubmit(changeInMaster); // Create a change in the other branch and that deleted file1. @@ -385,7 +385,7 @@ .tipOfBranch(branchName) .file(file) .delete() - .create(); + .createV1(); ImmutableList<ChangedFile> changedFilesSet = changedFiles.getFromDiffCache( @@ -470,7 +470,7 @@ .content("base content") .file(file5) .content("base content") - .create(); + .createV1(); approveAndSubmit(baseChange); // Create another branch @@ -492,7 +492,7 @@ .content("master content") .file(file5) .content("master content") - .create(); + .createV1(); approveAndSubmit(changeInMaster); // Create a change in the other branch and that touches file1, file3, file5 and creates file2, @@ -512,7 +512,7 @@ .content("content") .file(file5) .content("other content") - .create(); + .createV1(); approveAndSubmit(changeInOtherBranch); // Create a merge change with a conflict resolution for file1 and file2 with the same content as @@ -536,7 +536,7 @@ .content("content") .file(file5) .content("merged content") - .create(); + .createV1(); ImmutableList<ChangedFile> changedFilesSet = changedFiles.getFromDiffCache(