-
Notifications
You must be signed in to change notification settings - Fork 9
0.8.x Annotations for JUnit4
JCUnit provides a set of annotations with which you can let JCUnit know how your test suite should be generated and executed. Following is a matrix that lists those annotations.
# | annotation | target | note |
---|---|---|---|
1 | @RunWith |
class | Specifies a test runner with which your test is run |
2 | @ConfigureWith |
class | Specifies a parameter space class and test requirement class |
3 | @ParameterSource |
method | Indicates a method that defines a parameter |
4 | @Conditon |
method | Indicates a method that defines a constraint or non-constraint condition |
5 | @BeforeClass |
static method | Indicates a method to be run before all |
6 | @BeforeTestCase |
static method | Indicates a method to be run before every test case |
7 | @Before |
method | Indicates a method to be run before every test method in a test case |
8 | @Given |
method | Specifies a condition to be satisfied to run test method attached to |
9 | @Test |
method | Indicates a test method to be run for a test case |
10 | @From |
parameter | Specifies a parameter method the parameter attached to should get its value from |
11 | @After |
method | Indicates a method to be run after every test method in a test case |
12 | @AfterTestCase |
static method | Indicates a method to be run after every test method in a test case |
13 | @AfterClass |
static method | Indicates a method to be run before all |
Copyright 2013 Hiroshi Ukai.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http:https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.