PageRenderTime 33ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/wheels/tests/cache/Clear.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 9039899dd0f1435393550cafd7d19320 MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cfset cache = CreateObject("component", "wheels.Cache").init()>
  3. <cffunction name="setup">
  4. <cfset StructDelete(variables, "result")>
  5. <cfset StructDelete(variables, "results")>
  6. </cffunction>
  7. <cffunction name="testAll">
  8. <cfset cache.add(key="1", value="a")>
  9. <cfset cache.clear()>
  10. <cfset result = cache.count()>
  11. <cfset assert("result IS 0")>
  12. </cffunction>
  13. </cfcomponent>