OPI Blog
Learn from experts in their fields

Browsing Tags: mocking

Jul 16, 2021
Creating Mocks For Unit Testing in Go
Unit testing is an important part of any project, and Go built its framework with a testing package; making unit testing part of the language. This testing framework is good for most scenarios, but you ...
Spring Integration Testing with Spock Mocks
We all know it’s important to write tests for our code. Often we write unit tests and mock out the dependencies for the class under test. But eventually there is something we need to test that ...
Apr 8, 2014
Spock Mock Cheatsheet
The Spock testing framework includes powerful mocking capabilities that work well in unit tests. The Spock documentation is extensive, but I often find myself hunting for the syntax of the different mocking mechanisms in Spock. ...
Unit Testing Controllers in Grails 1.3.7
One benefit of Grails is its robust and versatile controller logic.  It can render responses in a multitude of formats, validate input, and handle a lot of processing behind the scenes.  This is all great and ...