Closed willis7 closed 10 years ago
The naming of the test case is actually correct as is. We only want to log if the log level is INFO. That's the case there. You can also see that the assert validates that the message is logged with Gradle's logger.
The case in which I submitted the fix for is DEBUG where the test asserts there isn't a call, but the description states there is. See below:
void "Message logged for Cargo Ant task with debug priority"() {
...
then:
0 * mockLogger.lifecycle('Cargo started')
Oh, never mind. I had a look at the wrong test case. Thanks!
No problem, thanks for the code its very useful :-)
A really pedantic change, sorry :-) I spotted this whilst looking at your project and how I can reuse your work around the ant logging listener.