JUnit: Difference between revisions
(Created page with "==Introduction== JUnit 4.x is a test framework which uses annotation to identify the methods which contain tests. JUnit assumes that all test methods can be performed in an arbit...") |
|||
| Line 1: | Line 1: | ||
==Introduction== | ==Introduction== | ||
JUnit 4.x is a test framework which uses annotation to identify the methods which contain tests. JUnit assumes that all test methods can be performed in an arbitrary order. Therefore tests should not depend other tests. | JUnit 4.x is a test framework which uses annotation to identify the methods which contain tests. JUnit assumes that all test methods can be performed in an arbitrary order. Therefore tests should not depend other tests. | ||
==Annotations== | |||
===@Test=== | |||
Annotation @Test identifies that this method is a test method. | |||
Revision as of 11:55, 16 June 2011
Introduction
JUnit 4.x is a test framework which uses annotation to identify the methods which contain tests. JUnit assumes that all test methods can be performed in an arbitrary order. Therefore tests should not depend other tests.
Annotations
@Test
Annotation @Test identifies that this method is a test method.