New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Mockito 1.5 spies on plain objects

by Matthew Bass on  Sep 18, 2008 2

The latest release of the Mockito mocking framework enables spying on non-mock objects and introduces a cleaner stubbing syntax.

Moq .NET Mocking Library

by Al Tenhundfeld on  Aug 12, 2008

Moq is a mocking library for .NET designed and developed to utilize .NET 3.5 features, e.g., Linq expression trees and lambda expressions. Moq's goal is to be simple and straightforward, allowing a natural integration into existing unit tests, instead of forcing developers to rewrite tests or learn extensive Record/Replay mocking frameworks.

Presentation: Mock Roles Not Object States

by Abel Avram on  Aug 10, 2008

In this presentation filmed during QCon London 2007, Nat Pryce and Steve Freeman talk about TDD using Mock Objects. In their opinion, Mock Objects improves the software design and makes the code more easier to maintain and adapt to changing requirements.

When To Use Mock Objects?

by Mike Bria on  Jun 09, 2008 4

In his 'Ode To Code' K Scott Allen offers rational for the use of mock objects when unit testing and discusses his thoughts on the use of mock object frameworks.

Mocking Web Services

by Boris Lublinsky on  May 10, 2008 1

Service simulation (mocking) – the ability to mimic service behavior even before they are implemented - enables service consumer developers and testers to parallelize their efforts without having to wait for service implementation to complete. Service simulation also provides a light-weight alternative to building expensive reference environments.

Interview: Attila Szegedi Discusses Rhino

by Ryan Slobojan on  Apr 16, 2008 3

In this interview, Attila Szegedi discusses the Rhino JavaScript engine. Topics covered include the implementation of Rhino, Rhino's featureset, continuations, usage patterns for embedding Rhino, running JavaScript on the server, scripting capabilities for Rhino, JavaScript versus Ruby, JavaScript on Rails, and future plans for Rhino.

Further Insights into Rhino on Rails

by Nick Laiacona on  Feb 10, 2008

Dion Almaer has published a podcast of his interview with Steve Yegge, the creator of Rhino on Rails. Rhino on Rails is a Javascript port of the popular Ruby on Rails framework. It is currently under active development for internal use at Google. Steve Yegge and his team hope to make Rhino on Rails open source this summer.

Boost your Java Test with Ruby and JtestR

by Sebastien Auvray on  Jan 07, 2008

The ease of Ruby for scripting tasks makes it a very powerful candidate for writing your Test suites. Until recently there was no real standalone framework to test your Java with Ruby. JtestR, written by Ola Blini (a member of JRuby team) and Anda Abramovici, makes it possible now. Ruby coupled with powerful Ruby tools such as RSpec, mocha will make writing Java tests smoother.

Does Dependency Injection pay off?

by Niclas Nilsson on  Dec 08, 2007 23

There has been an interesting discussion in the blogosphere about the benefits or lack of benefits from using Dependency Injection. The question is — does Dependency Injection really pay off?

Article: Iterative, Automated and Continuous Performance

by Scott Delap on  Nov 21, 2007 2

A new InfoQ article looks at evaluating performance in an iterative and continuous manner.

Rhino Mocks 3.3 is Ready

by Robert Bazinet on  Oct 25, 2007

The latest version of the very popular mocking framework, Rhino Mocks version 3.3 is complete and ready to be used by your tests. This release provides many new features including Remoting Proxies and more.

ObjectMother - a Forgotten Testing Tool

by Amr Elssamadisy on  Aug 07, 2007 8

One of the earliest techniques for writing tests using TDD did not use mocks and stubs, but used the actual business objects instead. By creating a set of factories that instantiated, composed, and executed methods on business objects, real objects, in a non-initial-state of their lifecycle, could be created for testing purposes. The name coined for this pattern was ObjectMother.

Steve Yegge Ports Rails to Javascript/Rhino

by Geoffrey Wiseman on  Jun 27, 2007 6

At Foo Camp this past weekend, Steve Yegge of Google gave a talk called "Google Rails Clone" where, as John Lam reports, he talked about his experience porting Ruby on Rails to Javascript at Google. InfoQ summarized the community reaction and took the opportunity to speak with Steve Yegge, who was kind enough to answer some questions.

Rails Testing Strategies

by Obie Fernandez on  Jun 12, 2006

Popular Rails community member Kevin Olbrich published a couple of interesting and useful articles on his blog about Rails testing strategies.