Groovy Documentation

grails.plugin.springcache.taglib
[Groovy] Class TagLibCachingSpec

java.lang.Object
  spock.lang.Specification
      grails.plugin.spock.IntegrationSpec
          grails.plugin.spock.GroovyPagesSpec
              TagLibCachingSpec

@Stepwise
class TagLibCachingSpec
extends grails.plugin.spock.GroovyPagesSpec

Field Summary
 
Fields inherited from class grails.plugin.spock.GroovyPagesSpec
__timeStamp, __timeStamp__239_neverHappen1291782434649, $spock_sharedInstance, __timeStamp, __timeStamp__239_neverHappen1292024058043, _
 
Fields inherited from class grails.plugin.spock.IntegrationSpec
$spock_sharedInstance, __timeStamp, __timeStamp__239_neverHappen1292024058043, _
 
Fields inherited from class spock.lang.Specification
_
 
Property Summary
java.lang.Object grailsApplication

java.lang.Object springcacheCacheManager

java.lang.Object springcacheService

net.sf.ehcache.Ehcache tagLibCache

 
Constructor Summary
TagLibCachingSpec()

 
Method Summary
java.lang.Object another tag invoking the cached tag internally will hit the cache()

java.lang.Object another tag invoking the cached tag internally with parameters will hit the cache()

java.lang.Object cacheable tags should be an instance of cachingtag()

java.lang.Object cleanupSpec()

private long getCacheHits()

private long getCacheMisses()

private long getCacheSize()

private java.lang.Object getTestCachingTagLib()

java.lang.Object invoking a cacheable tag should prime the cache()

java.lang.Object invoking the same tag again should hit the cache()

java.lang.Object noncacheable tags should not be an instance of cachingtag()

java.lang.Object setup()

java.lang.Object setupSpec()

java.lang.Object tag attributes affect the cache key()

java.lang.Object using different tag attributes misses the cache()

java.lang.Object using the same tag attributes again hits the cache()

java.lang.Object using the same tag attributes in a different order hits the cache()

 
Methods inherited from class grails.plugin.spock.GroovyPagesSpec
grails.plugin.spock.GroovyPagesSpec#getParams(), grails.plugin.spock.GroovyPagesSpec#setParams(java.util.Map), grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#getOutput(), grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#getTemplate(), grails.plugin.spock.GroovyPagesSpec#setControllerName(java.lang.String), grails.plugin.spock.GroovyPagesSpec#getRequest(), grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#getGroovyPagesTemplateEngine(), grails.plugin.spock.GroovyPagesSpec#setGroovyPagesTemplateEngine(org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine), grails.plugin.spock.GroovyPagesSpec#setTemplate(java.lang.String), grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#setProperty(java.lang.String, java.lang.Object), grails.plugin.spock.GroovyPagesSpec#getProperty(java.lang.String), grails.plugin.spock.GroovyPagesSpec#invokeMethod(java.lang.String, java.lang.Object), grails.plugin.spock.GroovyPagesSpec#getMetaClass(), grails.plugin.spock.GroovyPagesSpec#setMetaClass(groovy.lang.MetaClass), grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#super, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#this, grails.plugin.spock.GroovyPagesSpec#old(java.lang.Object), grails.plugin.spock.GroovyPagesSpec#thrown(java.lang.Class), grails.plugin.spock.GroovyPagesSpec#thrown(), grails.plugin.spock.GroovyPagesSpec#notThrown(java.lang.Class), grails.plugin.spock.GroovyPagesSpec#noExceptionThrown(), grails.plugin.spock.GroovyPagesSpec#Mock(), grails.plugin.spock.GroovyPagesSpec#Mock(java.lang.Class), grails.plugin.spock.GroovyPagesSpec#interaction(groovy.lang.Closure), grails.plugin.spock.GroovyPagesSpec#wait(), grails.plugin.spock.GroovyPagesSpec#wait(long), grails.plugin.spock.GroovyPagesSpec#wait(long, int), grails.plugin.spock.GroovyPagesSpec#equals(java.lang.Object), grails.plugin.spock.GroovyPagesSpec#toString(), grails.plugin.spock.GroovyPagesSpec#hashCode(), grails.plugin.spock.GroovyPagesSpec#getClass(), grails.plugin.spock.GroovyPagesSpec#notify(), grails.plugin.spock.GroovyPagesSpec#notifyAll()
 
Methods inherited from class grails.plugin.spock.IntegrationSpec
grails.plugin.spock.IntegrationSpec#setProperty(java.lang.String, java.lang.Object), grails.plugin.spock.IntegrationSpec#getProperty(java.lang.String), grails.plugin.spock.IntegrationSpec#invokeMethod(java.lang.String, java.lang.Object), grails.plugin.spock.IntegrationSpec#getMetaClass(), grails.plugin.spock.IntegrationSpec#setMetaClass(groovy.lang.MetaClass), grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#super, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#this, grails.plugin.spock.IntegrationSpec#old(java.lang.Object), grails.plugin.spock.IntegrationSpec#thrown(java.lang.Class), grails.plugin.spock.IntegrationSpec#thrown(), grails.plugin.spock.IntegrationSpec#notThrown(java.lang.Class), grails.plugin.spock.IntegrationSpec#noExceptionThrown(), grails.plugin.spock.IntegrationSpec#Mock(), grails.plugin.spock.IntegrationSpec#Mock(java.lang.Class), grails.plugin.spock.IntegrationSpec#interaction(groovy.lang.Closure), grails.plugin.spock.IntegrationSpec#wait(), grails.plugin.spock.IntegrationSpec#wait(long), grails.plugin.spock.IntegrationSpec#wait(long, int), grails.plugin.spock.IntegrationSpec#equals(java.lang.Object), grails.plugin.spock.IntegrationSpec#toString(), grails.plugin.spock.IntegrationSpec#hashCode(), grails.plugin.spock.IntegrationSpec#getClass(), grails.plugin.spock.IntegrationSpec#notify(), grails.plugin.spock.IntegrationSpec#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

grailsApplication

java.lang.Object grailsApplication


springcacheCacheManager

@Shared
java.lang.Object springcacheCacheManager


springcacheService

java.lang.Object springcacheService


tagLibCache

@Shared
net.sf.ehcache.Ehcache tagLibCache


 
Constructor Detail

TagLibCachingSpec

TagLibCachingSpec()


 
Method Detail

another tag invoking the cached tag internally will hit the cache

java.lang.Object another tag invoking the cached tag internally will hit the cache()


another tag invoking the cached tag internally with parameters will hit the cache

java.lang.Object another tag invoking the cached tag internally with parameters will hit the cache()


cacheable tags should be an instance of cachingtag

java.lang.Object cacheable tags should be an instance of cachingtag()


cleanupSpec

java.lang.Object cleanupSpec()


getCacheHits

private long getCacheHits()


getCacheMisses

private long getCacheMisses()


getCacheSize

private long getCacheSize()


getTestCachingTagLib

private java.lang.Object getTestCachingTagLib()


invoking a cacheable tag should prime the cache

@Unroll
java.lang.Object invoking a cacheable tag should prime the cache()


invoking the same tag again should hit the cache

@Unroll
java.lang.Object invoking the same tag again should hit the cache()


noncacheable tags should not be an instance of cachingtag

java.lang.Object noncacheable tags should not be an instance of cachingtag()


setup

java.lang.Object setup()


setupSpec

java.lang.Object setupSpec()


tag attributes affect the cache key

@Unroll
java.lang.Object tag attributes affect the cache key()


using different tag attributes misses the cache

@Unroll
java.lang.Object using different tag attributes misses the cache()


using the same tag attributes again hits the cache

@Unroll
java.lang.Object using the same tag attributes again hits the cache()


using the same tag attributes in a different order hits the cache

@Unroll
java.lang.Object using the same tag attributes in a different order hits the cache()


 

Groovy Documentation