~ubuntu-branches/ubuntu/utopic/testng/utopic

« back to all changes in this revision

Viewing changes to test-14/src/test/sample/Scope.java

  • Committer: Bazaar Package Importer
  • Author(s): Marcus Better
  • Date: 2009-05-04 10:47:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090504104743-1gbwsis9q1fh3aaj
Tags: upstream-5.9+dfsg
ImportĀ upstreamĀ versionĀ 5.9+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package test.sample;
 
2
 
 
3
 
 
4
 
 
5
/**
 
6
 * This class tests paramete scopes.
 
7
 *
 
8
 * @author cbeust
 
9
 */
 
10
public class Scope {
 
11
  /**
 
12
   * @testng.test groups="outer-group" parameters="parameter"
 
13
   */
 
14
  public void outerDeprecated(String s) {
 
15
    assert "out".equals(s)
 
16
        : "Expected out got " + s;
 
17
  }
 
18
 
 
19
  /**
 
20
   * @testng.test groups="inner-group" parameters="parameter"
 
21
   */
 
22
  public void innerDeprecated(String s) {
 
23
    assert "in".equals(s)
 
24
        : "Expected in got " + s;
 
25
  }
 
26
  
 
27
  /**
 
28
   * @testng.parameters value = "parameter"
 
29
   * @testng.test groups="outer-group"
 
30
   */
 
31
  public void outer(String s) {
 
32
    assert "out".equals(s)
 
33
        : "Expected out got " + s;
 
34
  }
 
35
 
 
36
  /**
 
37
   * @testng.parameters value = "parameter"
 
38
   * @testng.test groups="inner-group" 
 
39
   */
 
40
  public void inner(String s) {
 
41
    assert "in".equals(s)
 
42
        : "Expected in got " + s;
 
43
  }
 
44
 
 
45
}