01: package test.mannotation;
02:
03: /**
04: * @testng.test enabled = "true" groups = "group1 group2"
05: * alwaysRun = "true" parameters = "param1 param2"
06: * dependsOnGroups = "dg1 dg2" dependsOnMethods = "dm1 dm2"
07: * timeOut = "42" invocationCount = "43" successPercentage = "44"
08: * dataProvider = "dp" description = "Class level description"
09: */
10: public class MTest1 {
11:
12: /**
13: * @testng.test enabled = "true" groups = "group5 group6"
14: * alwaysRun = "true" parameters = "param5 param6"
15: * dependsOnGroups = "dg5 dg6" dependsOnMethods = "dm5 dm6"
16: * timeOut = "242" invocationCount = "243" successPercentage = "62"
17: * dataProvider = "dp3" description = "Constructor description"
18: * expectedExceptions = "java.lang.NullPointerException"
19: */
20: public MTest1() {
21: }
22:
23: /**
24: * @testng.test enabled = "true" groups = "group3 group4"
25: * alwaysRun = "true" parameters = "param3 param4"
26: * dependsOnGroups = "dg3 dg4" dependsOnMethods = "dm3 dm4"
27: * timeOut = "142" invocationCount = "143" successPercentage = "61"
28: * dataProvider = "dp2" threadPoolSize = "3"
29: * description = "Method description"
30: * expectedExceptions = "java.lang.NullPointerException"
31: */
32: public void f() {
33: }
34:
35: /**
36: * @testng.configuration
37: * beforeSuite = "true" beforeTestMethod = "true"
38: * beforeTest = "true" beforeTestClass = "true"
39: * beforeGroups = "b1 b2"
40: */
41: public void before() {
42: }
43:
44: /**
45: * @testng.configuration
46: * afterSuite = "true" afterTestMethod = "true"
47: * afterTest = "true" afterTestClass = "true"
48: * afterGroups = "a1 a2"
49: */
50: public void after() {
51: }
52:
53: /**
54: * @testng.configuration parameters = "oparam1 oparam2"
55: * enabled = "false" groups = "ogroup1 ogroup2"
56: * dependsOnGroups = "odg1 odg2"
57: * dependsOnMethods = "odm1 odm2" alwaysRun = "true"
58: * inheritGroups = "false" description = "beforeSuite description"
59: *
60: * @testng.data-provider name="dp4"
61: *
62: * @testng.expected-exceptions value = "test.mannotation.MTest1 test.mannotation.MTest2"
63: */
64: public void otherConfigurations() {
65: }
66:
67: /**
68: * @testng.factory parameters = "pf1 pf2"
69: */
70: public void factory() {
71: }
72:
73: /**
74: * @testng.parameters value = "pp1 pp2 pp3"
75: */
76: public void parameters() {
77: }
78:
79: /**
80: * @testng.before-suite
81: * @testng.before-test
82: * @testng.before-groups
83: * @testng.before-class
84: * @testng.before-method
85: */
86: public void newBefore() {
87: }
88:
89: /**
90: * @testng.after-suite
91: * @testng.after-test
92: * @testng.after-groups
93: * @testng.after-class
94: * @testng.after-method
95: */
96: public void newAfter() {
97: }
98: }
|