commit | d555fb8e490068f04268f391438c7e7ac7f2ae48 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Fri Mar 16 12:43:22 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Fri Nov 09 13:24:09 2018 +0900 |
tree | 1a57d4a734dea9482f7572613a6d56f0e22a6de6 | |
parent | 96f99bfccd2cf72617714f11fd700456aaa4fb17 [diff] |
FileBasedWebSessionCacheTest: Fix IncompatibleArgumentType error Compilation of the tests under bazel fails with: error: [IncompatibleArgumentType] Argument 'path' should not be passed to this method. Its type Path is not compatible with the required type: String. assertThat(cache.getIfPresent(path)).isNull(); ^ (see http://errorprone.info/bugpattern/IncompatibleArgumentType) Change-Id: I97ca1f2242ffe0d1698ccb0c2c792fdb12169d3d
diff --git a/src/test/java/com/ericsson/gerrit/plugins/highavailability/websession/file/FileBasedWebSessionCacheTest.java b/src/test/java/com/ericsson/gerrit/plugins/highavailability/websession/file/FileBasedWebSessionCacheTest.java index 47ced48..bccf300 100644 --- a/src/test/java/com/ericsson/gerrit/plugins/highavailability/websession/file/FileBasedWebSessionCacheTest.java +++ b/src/test/java/com/ericsson/gerrit/plugins/highavailability/websession/file/FileBasedWebSessionCacheTest.java
@@ -127,7 +127,7 @@ public void getIfPresentInvalidKeyTest() throws Exception { loadKeyToCacheDir(INVALID_KEY); Path path = websessionDir.resolve(INVALID_KEY); - assertThat(cache.getIfPresent(path)).isNull(); + assertThat(cache.getIfPresent((Object) path)).isNull(); } @Test