Repository: neo4j-contrib/neo4j-jdbc
Pull request #323 (2022-03-18 17:01:41)

Bump neo4j-java-driver from 4.4.3 to 4.4.5
Bumps [neo4j-java-driver](https://github.com/neo4j/neo4j-java-driver) from 4.4.3 to 4.4.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/neo4j/neo4j-java-driver/releases">neo4j-java-driver's releases</a>.</em></p>
<blockquote>
<h2>4.4.5</h2>
<p>This is a refinement release that brings one improvement and dependency update.</p>
<h4>👏 Improvements</h4>
<hr />
<ul>
<li>Add substitutions for DriverFactory#getOrCreateMetricsProvider <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1183">#1183</a></li>
</ul>
<h4>🔧 Dependency Management</h4>
<hr />
<ul>
<li>Update netty-handler to 4.1.75.Final <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1191">#1191</a></li>
</ul>
<h2>4.4.4</h2>
<p>The highlight of this release is support for <a href="https://micrometer.io/">Micrometer</a> metrics that comes with experimental status.</p>
<p>To enable Micrometer metrics, you need to:</p>
<ul>
<li>include Micrometer dependencies on classpath</li>
<li>enable Micrometer metrics via driver configuration</li>
</ul>
<p>Sample driver configuration:</p>
<pre><code>var config = Config.builder()
		.withMetricsAdapter(MetricsAdapter.MICROMETER)
		.build();
<p>var driver = GraphDatabase.driver(url, AuthTokens.basic(username, password), config);
</code></pre></p>
<p>At this stage we only support the <a href="https://micrometer.io/docs/concepts#_global_registry">global registry</a> that is discovered automatically.</p>
<p>In addition, this release brings several general improvements and dependency updates.</p>
<h4>⭐ New Features</h4>
<hr />
<ul>
<li>Micrometer metrics <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1173">#1173</a></li>
<li>Make MapAccessorWithDefaultValue extend MapAccessor <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1161">#1161</a></li>
<li>Add support for multiple certificate files <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1169">#1169</a> <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1176">#1176</a></li>
</ul>
<h4>👏 Improvements</h4>
<hr />
<ul>
<li>Avoid TrustManagerFacotry.init(ManagerFactoryParameters var1) if no OSCP has been configured <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1157">#1157</a></li>
</ul>
<h4>✅ Testkit</h4>
<hr />
<ul>
<li>Enable Optimization:EagerTransactionBegin <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1162">#1162</a></li>
<li>Add support for Feature:TLS:1.3 Testkit feature <a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/pull/1164">#1164</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/27f38b532a360cf35485df12ced05e31409afcd3"><code>27f38b5</code></a> Update netty-handler to 4.1.75.Final (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1190">#1190</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1191">#1191</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/c654c0f1912e0506e419c2f192a4a5150985059c"><code>c654c0f</code></a> Add substitutions for DriverFactory#getOrCreateMetricsProvider. (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1183">#1183</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/0fd5a193dcb397e00f2ef89106064f47f15d8d9e"><code>0fd5a19</code></a> Update dependencies (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1178">#1178</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1180">#1180</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/8049ec6a22863956499a7777c3db6f007919139f"><code>8049ec6</code></a> Add safety checks to Config.TrustStrategy.trustCustomCertificateSignedBy (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/11">#11</a>...</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/05eb4a35800385e04cea6800f44b342defb539ad"><code>05eb4a3</code></a> Micrometer metrics (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1137">#1137</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1173">#1173</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/3edf0e285dbfdb836fc6a423fa8cb9ba0e226489"><code>3edf0e2</code></a> Add support for Feature:API:Driver.IsEncrypted Testkit feature (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1152">#1152</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1170">#1170</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/5abc24bbdb56da339d7866b98d5485f415417a09"><code>5abc24b</code></a> Add support for multiple certificate files (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1153">#1153</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1169">#1169</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/994fb0aa17a92ba491763038f8ea9d21503cce2d"><code>994fb0a</code></a> Avoid TrustManagerFacotry.init(ManagerFactoryParameters var1) if no OSCP has ...</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/0d8bd6ed0992dd3ba993505b1fb4ab1f9d4933ac"><code>0d8bd6e</code></a> Update mockito-core to 4.3.1 (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1160">#1160</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1166">#1166</a>)</li>
<li><a href="https://github.com/neo4j/neo4j-java-driver/commit/fb556663e122d2942a20c60d85b0b454031975e9"><code>fb55666</code></a> Add support for Feature:TLS:1.3 Testkit feature (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1155">#1155</a>) (<a href="https://github-redirect.dependabot.com/neo4j/neo4j-java-driver/issues/1164">#1164</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/neo4j/neo4j-java-driver/compare/4.4.3...4.4.5">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.neo4j.driver:neo4j-java-driver&package-manager=maven&previous-version=4.4.3&new-version=4.4.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7399cf29..bfd17e78 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -27,7 +27,7 @@ jobs:
           java-version: 8
           distribution: adopt
       - name: Cache ~/.m2/repository
-        uses: actions/cache@v2.1.7
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
diff --git a/pom.xml b/pom.xml
index 502f267d..f0a00b28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -81,7 +81,7 @@
 		<mockito.version>4.4.0</mockito.version>
 		<junit.version>4.13.2</junit.version>
 		<jmh.version>1.34</jmh.version>
-		<neo4j.java.driver.version>4.4.3</neo4j.java.driver.version>
+		<neo4j.java.driver.version>4.4.5</neo4j.java.driver.version>
 		<neo4j.version>4.3.0</neo4j.version>
 		<httpclient.version>4.5.13</httpclient.version>
 		<jackson.version>2.13.2</jackson.version>


Test patch:
diff --git a/neo4j-jdbc-bolt/src/test/java/org/neo4j/jdbc/bolt/FakeRecord.java b/neo4j-jdbc-bolt/src/test/java/org/neo4j/jdbc/bolt/FakeRecord.java
index d95fc3fe..11cf1818 100644
--- a/neo4j-jdbc-bolt/src/test/java/org/neo4j/jdbc/bolt/FakeRecord.java
+++ b/neo4j-jdbc-bolt/src/test/java/org/neo4j/jdbc/bolt/FakeRecord.java
@@ -53,6 +53,11 @@ public class FakeRecord implements Record {
         return new ArrayList<>(values.values());
     }
 
+    @Override
+    public <T> Iterable<T> values(Function<Value, T> function) {
+        return null;
+    }
+
     @Override
     public boolean containsKey(String key) {
         return values.containsKey(key);