diff --git a/extensions/modules/cache/src/test/java/org/exist/xquery/modules/cache/NonLazyCacheTest.java b/extensions/modules/cache/src/test/java/org/exist/xquery/modules/cache/NonLazyCacheTest.java index 84a5a7780f..c895354b53 100644 --- a/extensions/modules/cache/src/test/java/org/exist/xquery/modules/cache/NonLazyCacheTest.java +++ b/extensions/modules/cache/src/test/java/org/exist/xquery/modules/cache/NonLazyCacheTest.java @@ -97,7 +97,7 @@ public void putOnNonLazilyCreatedCacheWithoutExplicitCreation() throws Permissio fail("Should not be able to lazily create a cache when lazy creation is disabled"); } catch (final XPathException e) { final ErrorCodes.ErrorCode errorCode = e.getErrorCode(); - assertEquals("Expected lazy creation disabled error", CacheModule.CacheModuleErrorCode.LAZY_CREATION_DISABLED, errorCode); + assertEquals("Expected lazy creation disabled error", CacheModule.CacheModuleErrorCode.LAZY_CREATION_DISABLED.getErrorCode(), errorCode); } }