PageRenderTime 489ms CodeModel.GetById 226ms app.highlight 0ms RepoModel.GetById 181ms app.codeStats 0ms

/wheels/tests/cache/Add.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 16 lines | 12 code | 4 blank | 0 comment | 0 complexity | 160bea132b5de25f6b50eab2479b600b MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cfset cache = CreateObject("component", "wheels.Cache").init()>
 4
 5	<cffunction name="setup">
 6		<cfset StructDelete(variables, "result")>
 7		<cfset StructDelete(variables, "results")>
 8	</cffunction>
 9
10	<cffunction name="testOneValue">
11		<cfset cache.add(key="1", value="a")>
12		<cfset result = cache.get(key="1")>
13		<cfset assert("NOT IsBoolean(result) AND result IS 'a'")>
14	</cffunction>
15
16</cfcomponent>