Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 638 Bytes
<cfcomponent displayname="Test Interface" hint="Abstract Class or Interface">
<!---
How can we implement an interface in CFMX?
--->
<cffunction name="Test">
<cfthrow type="mxunit.exception.CannotInstantiateException"
message="This is an interface and cannot be instantiated directly" />
</cffunction>
<cffunction name="run" returntype="void">
<cfthrow type="mxunit.exception.CannotInstantiateException"
message="This is an interface method and cannot be instantiated directly"
detail="Please implement this in the class that is realizing this interface" />
</cffunction>
</cfcomponent>
Something went wrong with that request. Please try again.