blog icon indicating copy to clipboard operation
blog copied to clipboard

Test method names

Open mkordas opened this issue 9 years ago • 2 comments

In https://github.com/yegor256/blog/blob/c280b45d7dcb3045d76f4791cff43cb3f8a7badc/_posts/2014/apr/2014-04-27-typical-mistakes-in-java-code.md#L110 it is written:

Additionally, method names shouldn't start with a verb.

Example has verb as first word, something is wrong here.

Only JavaDoc comments start with 'can.'

They do not start with 'can', they start with class name.

start with can.Only

Space is missing

It's important to start the first sentence of your JavaDoc with the name of the class you're testing followed by can

Should be Javadoc. Moreover, do you think that word cannot is acceptable instead of can in Javadoc?

mkordas avatar Feb 09 '16 08:02 mkordas

The fact that this issue had been sitting here for so long was bugging me, so I thought I'd do something about it... 😃

nqafield avatar Sep 10 '17 12:09 nqafield

@mkordas Should be pretty much fixed now. :)

nqafield avatar Sep 11 '17 17:09 nqafield