Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[riena-dev] JUnit tests

Hi Rienaers,

When writing tests which override the setUp() and the tearDown() methods please use the following convention:
- within setUp() - the first call should always be a super.setUp()
- within tearDown() - the last call should always be a super.tearDown()
- if setUp()/tearDown() is emtpy or only contains a super.setUp()/tearDown() remove it

This convention allows the super class, e.g. RienaTestCase to perform e.g. "health" checks and "personal" clean up in the correct order.

Tschüß,
Stefan

-------------------------------------------------------------
compeople AG
Untermainanlage 8
60329 Frankfurt/Main
fon: 069 / 27 22 18 0
fax: 069 / 27 22 18 22
web: www.compeople.de
Vorstand: Jürgen Wiesmaier
Aufsichtsratsvorsitzender: Christian Glanz
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister Frankfurt HRB 56759
Ust-Ident.-Nr: DE207665352
-------------------------------------------------------------

Back to the top