Naming convention unit test

Am I correct in assuming that the current naming convention is (as in the OpenMRS template for Eclipse)

	@Test
	public void shouldSentence() {...

Or is the picture in https://wiki.openmrs.org/display/docs/Developer+How-To+Setup+And+Use+Eclipse correct which says

       methodName_shouldSentence() ?

How about adding tests to test classes using an older version of the naming convention. Keep the pattern or stick to the rule?

What would your advice be? :smile:

I quite like

methodName_shouldSentence()

since it let’s one easily see which method is being tested.

I like it too. :slight_smile:

@dkayiwa wouldnt that idea demoralise the aspect of object oriented programming. inotherwords assuming you need to add another previleges in that object , how would you add them inorder to encapsulate the whole method, thanks