1 package test.configuration;
2 
3 import org.testng.Assert;
4 import org.testng.annotations.BeforeTest;
5 import org.testng.annotations.Parameters;
6 import org.testng.annotations.Test;
7 
8 public class ConfigurationWithParameters {
9   private String m_param;
10 
11   @Parameters({ "param" })
12   @BeforeTest
testInit(String param)13   public void testInit(String param) {
14     m_param = param;
15   }
16 
17   @Parameters({ "param" })
18   @Test
testMethod(String param)19   public void testMethod(String param) {
20     Assert.assertEquals(m_param, param);
21   }
22 
23 }
24