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.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use