BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Allow Mocking of an Interface that implements another interface

Description

I am having an issue using mockbox to mock an interface that implements another interface.

I am doing something like this:

mockSearchable = mockbox.createStub(implements="ISearchable");

ISearchable.cfc:

interface extends="IPermissible"{

}

IPermissible.cfc:

interface {
boolean function checkPermission(required number userID);
}

Currently, this produces the following error, presumably because the mock does not implement the methods of the extended interface:

component [C:\inetpub\wwwroot\coldbox\system\testing\stubs\822EF881-060B-4017-AA17A33D85186F7C.cfc] does not implement the function [checkpermission(number userid)] of the interface [C:\inetpub\wwwroot\myProject\IPermissible.cfc]

Gliffy Diagrams

Activity

Show:

Eric Peterson February 10, 2016 at 4:32 AM

Luis Majano February 9, 2016 at 7:00 PM

Hey Eric,

Since you are doing such an amazing job, I thought this ticket is a low hanging fruit that can introduce you to MockBox internals. Want to handle it?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Sentry

Created March 6, 2014 at 10:27 PM
Updated February 22, 2016 at 10:05 PM
Resolved February 22, 2016 at 10:05 PM

Flag notifications