File tree 5 files changed +23
-0
lines changed
src/main/java/org/junit/experimental/theories
5 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
package org .junit .experimental .theories ;
2
2
3
+ import static java .lang .annotation .ElementType .FIELD ;
4
+ import static java .lang .annotation .ElementType .METHOD ;
5
+
3
6
import java .lang .annotation .Retention ;
4
7
import java .lang .annotation .RetentionPolicy ;
8
+ import java .lang .annotation .Target ;
5
9
6
10
@ Retention (RetentionPolicy .RUNTIME )
11
+ @ Target ({FIELD , METHOD })
7
12
public @interface DataPoint {
8
13
9
14
}
Original file line number Diff line number Diff line change 1
1
package org .junit .experimental .theories ;
2
2
3
+ import static java .lang .annotation .ElementType .FIELD ;
4
+ import static java .lang .annotation .ElementType .METHOD ;
5
+
3
6
import java .lang .annotation .Retention ;
4
7
import java .lang .annotation .RetentionPolicy ;
8
+ import java .lang .annotation .Target ;
5
9
6
10
@ Retention (RetentionPolicy .RUNTIME )
11
+ @ Target ({FIELD , METHOD })
7
12
public @interface DataPoints {
8
13
9
14
}
Original file line number Diff line number Diff line change 1
1
package org .junit .experimental .theories ;
2
2
3
+ import static java .lang .annotation .ElementType .ANNOTATION_TYPE ;
4
+ import static java .lang .annotation .ElementType .PARAMETER ;
5
+
3
6
import java .lang .annotation .Retention ;
4
7
import java .lang .annotation .RetentionPolicy ;
8
+ import java .lang .annotation .Target ;
5
9
6
10
7
11
@ Retention (RetentionPolicy .RUNTIME )
12
+ @ Target ({ANNOTATION_TYPE , PARAMETER })
8
13
public @interface ParametersSuppliedBy {
9
14
10
15
Class <? extends ParameterSupplier > value ();
Original file line number Diff line number Diff line change 1
1
package org .junit .experimental .theories ;
2
2
3
+ import static java .lang .annotation .ElementType .METHOD ;
4
+
3
5
import java .lang .annotation .Retention ;
4
6
import java .lang .annotation .RetentionPolicy ;
7
+ import java .lang .annotation .Target ;
5
8
6
9
@ Retention (RetentionPolicy .RUNTIME )
10
+ @ Target (METHOD )
7
11
public @interface Theory {
8
12
boolean nullsAccepted () default true ;
9
13
}
Original file line number Diff line number Diff line change 1
1
package org .junit .experimental .theories .suppliers ;
2
2
3
+ import static java .lang .annotation .ElementType .PARAMETER ;
4
+
3
5
import java .lang .annotation .Retention ;
4
6
import java .lang .annotation .RetentionPolicy ;
7
+ import java .lang .annotation .Target ;
5
8
6
9
import org .junit .experimental .theories .ParametersSuppliedBy ;
7
10
8
11
@ ParametersSuppliedBy (TestedOnSupplier .class )
9
12
@ Retention (RetentionPolicy .RUNTIME )
13
+ @ Target (PARAMETER )
10
14
public @interface TestedOn {
11
15
int [] ints ();
12
16
}
You can’t perform that action at this time.
0 commit comments