Share

rMock

File Release Notes and Changelog

Release Name: 2.0.0-rc-4

Notes: This week we finally made our lives easier when it comes to writing acceptance tests for rMock. We added an expectThatExceptionThrown(Expression) method on RMockTestCase that enables you to define that exceptions are expected when running a test like this: public void testShouldThrowRuntimeException() { expectThatExceptionThrown(is.instanceOf(RuntimeException.class)); classUnderTest.doSomething(); } This test will pass if, and only if a RuntimeException is thrown by the doSomething() method. Also added is a multibuild with the first releases of extensions to rMock. One extension is the TDDoc, which will support documenting codebases by commenting the testcases. The other is a GUI unit testing extension, currently based on Abbot. Both these extensions are in an early state, not documented other than in the code. We are currently working on * The TDDoc extension. * GUI testing extension.


Changes: * Added the possibility to expect an exception to be thrown in a testcase. The new method expectThatThrownException(Expression) will match any thrown exception against the expression supplied and if it passes the expression it will be caught and the test will pass. * New structure on downloads * Early versions of GUI and TDDoc extensions