01: package test.sample;
02:
03: import java.util.Iterator;
04:
05: /*
06: * Created on 12-Sep-2006 by micheb10
07: */
08:
09: /**
10: * Sample file for the Javadoc annotations to Java 5 annotations converter for a non-default package
11: * @author micheb10 12-Sep-2006
12: * @testng.test
13: */
14: public class ConverterSample3 {
15: /**
16: * This comment line should be preserved
17: * @testng.before-suite alwaysRun = "true"
18: */
19: public void beforeSuiteAlwaysRun() {
20: // We are just checking appropriate annotations are added so we don't care about body
21: }
22:
23: /**
24: * @testng.test
25: */
26: public void plainTest() {
27: // Empty body
28: }
29:
30: /**
31: * @testng.test
32: * @testng.expected-exceptions
33: * value = "java.lang.NullPointerException java.lang.NumberFormatException"
34: */
35: public void expectedExceptions() {
36: // Empty body
37: }
38:
39: /**
40: * @testng.test groups = "groupA groupB"
41: */
42: public void testGroups() {
43: // Empty body
44: }
45:
46: /**
47: * @testng.after-method
48: */
49: public void afterMethod() {
50: // Empty body
51: }
52:
53: /**
54: * This key should be preserved
55: * @author The author is a standard tag and should not be touched
56: * @testng.test groups = "groupA" alwaysRun=true
57: * dependsOnMethods = "expectedExceptions" timeOut="3000"
58: * @version another standard tag should not be changed
59: * @testng.expected-exceptions
60: * value = "java.lang.NullPointerException java.lang.NumberFormatException"
61: * @testng.parameters value="firstParameter secondParameter thirdParameter"
62: */
63: public void testEverything() {
64: // Lots and lots of stuff
65: }
66:
67: /**
68: * @testng.data-provider name="test1"
69: */
70: public Object[][] dataProvider() {
71: return null;
72: }
73:
74: /**
75: * @testng.factory
76: */
77: public Object[] factory() {
78: return null;
79: }
80:
81: /**
82: * @testng.test
83: */
84: public class TestInnerClass {
85: public void bareInnerMethod() {
86: // Empty body
87: }
88:
89: /**
90: * @testng.test
91: */
92: public void testInnerMethod() {
93: // empty body
94: }
95: }
96: }
|