01: package test.sample;
02:
03: /**
04: * This class tests paramete scopes.
05: *
06: * @author cbeust
07: */
08: public class Scope {
09: /**
10: * @testng.test groups="outer-group" parameters="parameter"
11: */
12: public void outerDeprecated(String s) {
13: assert "out".equals(s) : "Expected out got " + s;
14: }
15:
16: /**
17: * @testng.test groups="inner-group" parameters="parameter"
18: */
19: public void innerDeprecated(String s) {
20: assert "in".equals(s) : "Expected in got " + s;
21: }
22:
23: /**
24: * @testng.parameters value = "parameter"
25: * @testng.test groups="outer-group"
26: */
27: public void outer(String s) {
28: assert "out".equals(s) : "Expected out got " + s;
29: }
30:
31: /**
32: * @testng.parameters value = "parameter"
33: * @testng.test groups="inner-group"
34: */
35: public void inner(String s) {
36: assert "in".equals(s) : "Expected in got " + s;
37: }
38:
39: }
|