)]}'
{
  "commit": "96ee9e5b0f293c2a90418676970aa33d2626840b",
  "tree": "535590472d2cb2fbdd8d7df9cafe6ba17f40571b",
  "parents": [
    "b53b2cd80cfb3149611add86bf7628968a884611"
  ],
  "author": {
    "name": "Alvaro Vilaplana Garcia",
    "email": "alvaro.vilaplana@gmail.com",
    "time": "Tue Nov 28 15:52:04 2023 +0000"
  },
  "committer": {
    "name": "Alvaro Vilaplana Garcia",
    "email": "alvaro.vilaplana@gmail.com",
    "time": "Tue Nov 28 17:17:25 2023 +0000"
  },
  "message": "Fix tests broken with the upgrade of Mockito framework\n\nWith the change 390986, Mockito framework was upgraded from 3.3.3\nto 5.6.0 and because of that some tests started failing. This\nchange requires minor refactoring to fix those tests, as outlined\nin the following points:\n\n- The method `verifyZeroInteractions` is no longer supported in the\nclass `org.mockito.Mockito` [1]. Instead, it can be substituted with\n`verifyNoInteractions`.\n\n- In Mockito version 3.3.3, the execution of real code occurred in\nmethods without defined expectations, and some tests were designed\naccordingly. However, with Mockito 5.6.0, when methods are invoked\nwithout specified expectations, the framework will now appropriately\nreturn either null, a primitive/primitive wrapper value, or an empty\ncollection. As a result, minor refactoring was necessary.\n\n- The handling of Mockito expectations in methods declared with\nvarargs has been restructured to use the format `any(MyClass[].class)`.\n\nReferences:\n\n[1] https://github.com/mockito/mockito/blob/v5.6.0/src/main/java/org/mockito/Mockito.java#L2699\n\nChange-Id: Ic3d8641c4ca6b485212bdaa55d359a4cc4bb4741\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "14447a987917f77f279fe310ce3724c783cd730f",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueueTest.java",
      "new_id": "90c9b9cb991f7bc6d44295c5090d149fffebb4dd",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueueTest.java"
    },
    {
      "type": "modify",
      "old_id": "9c9c6890c7c57efe22d4396163c78d04497d5a30",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/DeleteRefCommandTest.java",
      "new_id": "40912ac9a4453a43a8bbaa0edf86798390119d05",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/DeleteRefCommandTest.java"
    },
    {
      "type": "modify",
      "old_id": "ebac7293bb423684ba9c02932cd35a1fcc492595",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/client/FetchRestApiClientWithBasicAuthenticationTest.java",
      "new_id": "165ed8020ae70a8af721f70aae97e0da91216568",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/client/FetchRestApiClientWithBasicAuthenticationTest.java"
    }
  ]
}
