mardi 4 octobre 2022

Java Tests: how should i declare a variable which is used multiple times

i just want to know how i should declare Objects as a field when i want to use them in different test cases.

  • standard declaration with 'private'
  • final / not final
  • static / non static

And if there is a choice how i really should do that, please explain?

Aucun commentaire:

Enregistrer un commentaire