farndt
(Franziska Arndt)
August 30, 2019, 8:03pm
1
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?
dkayiwa
(Daniel Kayiwa)
September 1, 2019, 1:22pm
2
What would your advice be?
farndt
(Franziska Arndt)
September 2, 2019, 9:50pm
3
I quite like
methodName_shouldSentence()
since it let’s one easily see which method is being tested.
sharif
(Sharif Magembe)
September 8, 2019, 8:05am
5
@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