Java 5 annotations for setup and teardown (@before
and @after
)
instead of setUp()
and tearDown()
.
don't need to extend TestCase anymore.
@Test
annotation replaces testSomeMethod()
naming convention.
static imports
for asserts.
Junit theories, which allow you to separate data sets from the test
itself.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…