0

Reference:

http://junit.sourceforge.net/junit3.8.1/javadoc/junit/framework/TestCase.html#setUp()

setUp should have ideally be named as setup

I've explored if any duplicate method setup is used in its parent hierarchy, because of which they renamed the method to setUp, but couldn't find any.

Kilian Foth
  • 110,899
kai
  • 245

1 Answers1

28

No, it shouldn't.

For the moment, there is still a difference between the noun "setup" and the verb "set up":

Hey Joe, can you set up the amp for me?

Dude, that's a sweet stereo setup you've got there!

Since procedure names are conceptually verbs, setUp is the correct way to spell the method name. I'm aware that this is slowly changing so that both will eventually come to be spelt as one word, but as long as we have the difference, it's a good idea to exploit that difference to increase clarity.

Kilian Foth
  • 110,899