Slide 33
Slide 33 text
Native support for JUnit before/after
annotations
By default s
e
t
u
p
S
p
e
c
(
)
, s
e
t
u
p
(
)
, c
l
e
a
n
u
p
(
)
, c
l
e
a
n
u
p
S
p
e
c
(
)
In addition @
B
e
f
o
r
e
C
l
a
s
s
, @
B
e
f
o
r
e
, @
A
f
t
e
r
, @
A
f
t
e
r
C
l
a
s
s
Can be mixed together (also through class hierarchy)
No longer called twice in super class
More than one method of given type can be provided
Useful when dealing with
Additional testing frameworks like in Grails
Traits with setup/clean up code
Marcin Zajączkowski @SolidSoftBlog http://blog.solidsoft.info/
1.0