MockBox

Software Screenshot:
MockBox
Software Details:
Version: 3.1.0
Upload Date: 13 Apr 15
Developer: Ortus Solutions
Distribution Type: Freeware
Downloads: 34

Rating: nan/5 (Total Votes: 0)

By default, MockBox is included with all ColdBox packages, version 3 or higher.

This doesn't mean MockBox needs ColdBox to work properly, developers being able to use MockBox as a stand-alone application as well.

If the terms "mocking" or "stubbing" are alien to you, they refer to the act of mimicking data and content inside an application or code routine, for the sole purpose of testing how it will run in production environments.

MockBox is a simple fake data generator, to be used with any ColdFusion unit testing framework.

By default, support for the MXUnit ColdFusion unit testing framework is included out of the box.

Features:

  • Does not affect the basic code
  • Support for code dependencies
  • Mock internal object properties
  • State-Machine results
  • Method call counter
  • Method arguments call logging
  • Conditional mocking support
  • Support for private and package methods
  • Mock exceptions

What is new in this release:

  • Mocking argument normalization, diff expectations when name-value or positional argument calling. This means that you can test with ordered or name-value pairs or even argument collections and MockBox will determine the right matching values for you. If you are new to MockBox, don't worry, this was a cool fix to how MockBox matches arguments to results.
  • Change all mock methods to their $ name equivalents on the MockBox CFC so they are documented like so. This was not the case on version 1.2 where we created method aliases, this just added overhead and not a very clear mocking API. So this was revamped and I documented the functions out of it.

What is new in version 1.2:

  • Added new method: $verifyCallCount(count,[methodName]) that can assert how many times a component's methods have been called, or how many times a specific method has been called. Basically, it returns a boolean according to the passed expected count calls.
  • mockMethodCallCount() the methodname is now optional and it will return to you the TOTAL number of calls that have been made for ALL methods in the mocked CFC.

Requirements:

  • ColdFusion MX 7 or higher
  • Railo 2 or higher
  • BlueDragon 7 or higher

Similar Software

Hyperlink
Hyperlink

11 Mar 16

JSCover
JSCover

6 Mar 16

useful.log.js
useful.log.js

12 May 15

Other Software of Developer Ortus Solutions

ContentBox
ContentBox

13 May 15

DataBoss
DataBoss

13 Apr 15

WireBox
WireBox

1 Mar 15

Comments to MockBox

Comments not found
Add Comment
Turn on images!