From 745fc9a11340f192e2f73c0f1f3101866d26f74f Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Sat, 17 Nov 2007 15:30:34 -0200 Subject: Added MockerTestCase.assertMethodsMatch(). It will verify if all public methods found in the class passed as the first argument are also present in the class passed as the second argument, and that they accept the same arguments. This is useful to verify if a fake or stub class have the same API as the real class being simulated. --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 9ff0dbc..8d43cb5 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,12 @@ easy creation of temporary files/directories, and ensure that they get removed after each test method runs. +- Added MockerTestCase.assertMethodsMatch(). It will verify if all + public methods found in the class passed as the first argument are + also present in the class passed as the second argument, and that + they accept the same arguments. This is useful to verify if a fake + or stub class have the same API as the real class being simulated. + - If the replay() method is called twice, expectations will be fully reset so that several similar tests may be performed in a row by just calling replay() again. -- cgit v1.2.1