From 8b7959efa7aee332d4bfeb442e338adf9b7d8abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scheibe?= Date: Wed, 9 Feb 2022 00:03:48 +0100 Subject: [PATCH] Fix typos --- src/main/docs/guide/usage/cacheManager.adoc | 2 +- .../com/demo/BasicCachingServiceNoCacheManagerSpec.groovy | 4 ++-- src/test/groovy/com/demo/BasicCachingServiceSpec.groovy | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/docs/guide/usage/cacheManager.adoc b/src/main/docs/guide/usage/cacheManager.adoc index 1fbb2596..d8dd4878 100644 --- a/src/main/docs/guide/usage/cacheManager.adoc +++ b/src/main/docs/guide/usage/cacheManager.adoc @@ -1,3 +1,3 @@ -The plugin registers an instance of the link:{springApi}/org/springframework/cache/CacheManager.html[CacheManager] iterface as the `grailsCacheManager` Spring bean, so it's easy to access using dependency injection. +The plugin registers an instance of the link:{springApi}/org/springframework/cache/CacheManager.html[CacheManager] interface as the `grailsCacheManager` Spring bean, so it's easy to access using dependency injection. The most common method you would call on the `grailsCacheManager` is `getCache(String name)` to access a link:{springApi}/org/springframework/cache/Cache.html[Cache] instance programmatically. This shouldn't be needed often however. From the `Cache` instance you can also access the underlying cache implementation using `cache.getNativeCache()`. diff --git a/src/test/groovy/com/demo/BasicCachingServiceNoCacheManagerSpec.groovy b/src/test/groovy/com/demo/BasicCachingServiceNoCacheManagerSpec.groovy index 454bdfac..5f0e9053 100644 --- a/src/test/groovy/com/demo/BasicCachingServiceNoCacheManagerSpec.groovy +++ b/src/test/groovy/com/demo/BasicCachingServiceNoCacheManagerSpec.groovy @@ -9,14 +9,14 @@ class BasicCachingServiceNoCacheManagerSpec extends Specification implements Ser when: 'a cached method is invoked the first time' def result = service.getData() - then: 'the code in the method is exeucted' + then: 'the code in the method is executed' result == 'Hello World!' service.invocationCounter == 1 when: 'a cached method is invoked the second time' result = service.getData() - then: 'the code in the method is still exeucted because no cache manager is present' + then: 'the code in the method is still executed because no cache manager is present' result == 'Hello World!' service.invocationCounter == 2 } diff --git a/src/test/groovy/com/demo/BasicCachingServiceSpec.groovy b/src/test/groovy/com/demo/BasicCachingServiceSpec.groovy index 58367400..261c23a6 100644 --- a/src/test/groovy/com/demo/BasicCachingServiceSpec.groovy +++ b/src/test/groovy/com/demo/BasicCachingServiceSpec.groovy @@ -17,7 +17,7 @@ class BasicCachingServiceSpec extends Specification implements ServiceUnitTest