Groovy Documentation

[Groovy] Class SpringcacheServiceSpec

java.lang.Object
  spock.lang.Specification
      grails.plugin.spock.UnitSpec
          SpringcacheServiceSpec

class SpringcacheServiceSpec
extends grails.plugin.spock.UnitSpec

Field Summary
 
Fields inherited from class grails.plugin.spock.UnitSpec
$spock_sharedInstance, __timeStamp, __timeStamp__239_neverHappen1291782434617, _
 
Fields inherited from class spock.lang.Specification
_
 
Property Summary
net.sf.ehcache.Ehcache cache1

net.sf.ehcache.Ehcache cache2

net.sf.ehcache.CacheManager manager

SpringcacheService service

 
Constructor Summary
SpringcacheServiceSpec()

 
Method Summary
java.lang.Object caching methods pass through when the plugin is disabled()

java.lang.Object calling flush flushes the correct cache or caches()

java.lang.Object clearStatistics()

java.lang.Object doWithBlockingCache clears lock if exception is thrown from closure()

java.lang.Object doWithBlockingCache decorates cache before using if it is non-blocking()

java.lang.Object doWithBlockingCache does not decorate cache if it is a blocking cache already()

java.lang.Object doWithBlockingCache does not try to clear lock if it never acquires it()

java.lang.Object doWithCache creates a new cache if cache not found and autoCreateCaches is true()

java.lang.Object doWithCache delegates to doWithBlockingCache if it finds a blocking cache()

java.lang.Object doWithCache retrieves value from cache()

java.lang.Object doWithCache stores null if closure returns null()

java.lang.Object doWithCache stores value returned by closure if cache element expired()

java.lang.Object doWithCache stores value returned by closure if not found in cache()

java.lang.Object doWithCache throws exception if cache not found and autoCreateCaches is false()

java.lang.Object exceptions on flush are handled()

java.lang.Object flush all flushes everything()

java.lang.Object flush and clear methods are no-ops when the plugin is disabled()

java.lang.Object setup()

 
Methods inherited from class grails.plugin.spock.UnitSpec
grails.plugin.spock.UnitSpec#setProperty(java.lang.String, java.lang.Object), grails.plugin.spock.UnitSpec#getProperty(java.lang.String), grails.plugin.spock.UnitSpec#invokeMethod(java.lang.String, java.lang.Object), grails.plugin.spock.UnitSpec#getMetaClass(), grails.plugin.spock.UnitSpec#setMetaClass(groovy.lang.MetaClass), grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#getDomainClassesInfo(), grails.plugin.spock.UnitSpec#setDomainClassesInfo(org.codehaus.groovy.grails.commons.DefaultArtefactInfo), grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#this, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#super, grails.plugin.spock.UnitSpec#old(java.lang.Object), grails.plugin.spock.UnitSpec#thrown(java.lang.Class), grails.plugin.spock.UnitSpec#thrown(), grails.plugin.spock.UnitSpec#notThrown(java.lang.Class), grails.plugin.spock.UnitSpec#noExceptionThrown(), grails.plugin.spock.UnitSpec#Mock(), grails.plugin.spock.UnitSpec#Mock(java.lang.Class), grails.plugin.spock.UnitSpec#interaction(groovy.lang.Closure), grails.plugin.spock.UnitSpec#wait(), grails.plugin.spock.UnitSpec#wait(long), grails.plugin.spock.UnitSpec#wait(long, int), grails.plugin.spock.UnitSpec#equals(java.lang.Object), grails.plugin.spock.UnitSpec#toString(), grails.plugin.spock.UnitSpec#hashCode(), grails.plugin.spock.UnitSpec#getClass(), grails.plugin.spock.UnitSpec#notify(), grails.plugin.spock.UnitSpec#notifyAll()
 
Methods inherited from class spock.lang.Specification
spock.lang.Specification#old(java.lang.Object), spock.lang.Specification#thrown(java.lang.Class), spock.lang.Specification#thrown(), spock.lang.Specification#notThrown(java.lang.Class), spock.lang.Specification#noExceptionThrown(), spock.lang.Specification#Mock(), spock.lang.Specification#Mock(java.lang.Class), spock.lang.Specification#interaction(groovy.lang.Closure), spock.lang.Specification#wait(), spock.lang.Specification#wait(long), spock.lang.Specification#wait(long, int), spock.lang.Specification#equals(java.lang.Object), spock.lang.Specification#toString(), spock.lang.Specification#hashCode(), spock.lang.Specification#getClass(), spock.lang.Specification#notify(), spock.lang.Specification#notifyAll()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

cache1

net.sf.ehcache.Ehcache cache1


cache2

net.sf.ehcache.Ehcache cache2


manager

net.sf.ehcache.CacheManager manager


service

SpringcacheService service


 
Constructor Detail

SpringcacheServiceSpec

SpringcacheServiceSpec()


 
Method Detail

caching methods pass through when the plugin is disabled

@Unroll("the #methodName method passes through when the plugin is disabled")
java.lang.Object caching methods pass through when the plugin is disabled()


calling flush flushes the correct cache or caches

@Unroll("calling flush(#flushArgument) flushes the correct cache or caches")
java.lang.Object calling flush flushes the correct cache or caches()


clearStatistics

java.lang.Object clearStatistics()


doWithBlockingCache clears lock if exception is thrown from closure

java.lang.Object doWithBlockingCache clears lock if exception is thrown from closure()


doWithBlockingCache decorates cache before using if it is non-blocking

java.lang.Object doWithBlockingCache decorates cache before using if it is non-blocking()


doWithBlockingCache does not decorate cache if it is a blocking cache already

java.lang.Object doWithBlockingCache does not decorate cache if it is a blocking cache already()


doWithBlockingCache does not try to clear lock if it never acquires it

java.lang.Object doWithBlockingCache does not try to clear lock if it never acquires it()


doWithCache creates a new cache if cache not found and autoCreateCaches is true

java.lang.Object doWithCache creates a new cache if cache not found and autoCreateCaches is true()


doWithCache delegates to doWithBlockingCache if it finds a blocking cache

java.lang.Object doWithCache delegates to doWithBlockingCache if it finds a blocking cache()


doWithCache retrieves value from cache

@Unroll("doWithCache retrieves #value from cache")
java.lang.Object doWithCache retrieves value from cache()


doWithCache stores null if closure returns null

java.lang.Object doWithCache stores null if closure returns null()


doWithCache stores value returned by closure if cache element expired

java.lang.Object doWithCache stores value returned by closure if cache element expired()


doWithCache stores value returned by closure if not found in cache

java.lang.Object doWithCache stores value returned by closure if not found in cache()


doWithCache throws exception if cache not found and autoCreateCaches is false

java.lang.Object doWithCache throws exception if cache not found and autoCreateCaches is false()


exceptions on flush are handled

java.lang.Object exceptions on flush are handled()


flush all flushes everything

java.lang.Object flush all flushes everything()


flush and clear methods are no-ops when the plugin is disabled

@Unroll("the #methodName method is a no-op when the plugin is disabled")
java.lang.Object flush and clear methods are no-ops when the plugin is disabled()


setup

java.lang.Object setup()


 

Groovy Documentation