1 package test.sample;
2 
3 import org.testng.annotations.Test;
4 
5 /**
6  * This class tests paramete scopes.
7  *
8  * @author cbeust
9  */
10 public class Scope {
11 
12   @Test(groups = { "outer-group" }, parameters = { "parameter" })
outerDeprecated(String s)13   public void outerDeprecated(String s) {
14     assert "out".equals(s)
15       : "Expected out got " + s;
16   }
17 
18   @Test(groups = { "inner-group" }, parameters = { "parameter" })
innerDeprecated(String s)19   public void innerDeprecated(String s) {
20     assert "in".equals(s)
21       : "Expected in got " + s;
22   }
23 }
24