gluu
公開メンバ関数 | 静的公開メンバ関数 | 静的公開変数類 | 全メンバ一覧
org.xdi.oxauth.ConfigurableTest クラスabstract
org.xdi.oxauth.ConfigurableTest の継承関係図
Inheritance graph
org.xdi.oxauth.ConfigurableTest 連携図
Collaboration graph

公開メンバ関数

void initTestSuite (ITestContext context) throws FileNotFoundException, IOException
 

静的公開メンバ関数

static Archive<?> createDeployment ()
 

静的公開変数類

static FileConfiguration testData
 

詳解

Base class for all seam test which requre external configuration

著者
Yuriy Movchan Date: 05/16/2016

関数詳解

◆ createDeployment()

static Archive<?> org.xdi.oxauth.ConfigurableTest.createDeployment ( )
inlinestatic
40  {
41  return Deployments.createDeployment();
42  }

◆ initTestSuite()

void org.xdi.oxauth.ConfigurableTest.initTestSuite ( ITestContext  context) throws FileNotFoundException, IOException
inline
45  {
46  Reporter.log("Invoked init test suite method", true);
47 
48  String propertiesFile = context.getCurrentXmlTest().getParameter("propertiesFile");
49  if (StringHelper.isEmpty(propertiesFile)) {
50  propertiesFile = "target/test-classes/testng.properties";
51  }
52 
53  // Load test parameters
54  FileInputStream conf = new FileInputStream(propertiesFile);
55  Properties prop;
56  try {
57  prop = new Properties();
58  prop.load(conf);
59  } finally {
60  IOUtils.closeQuietly(conf);
61  }
62 
63  Map<String, String> parameters = new HashMap<String, String>();
64  for (Entry<Object, Object> entry : prop.entrySet()) {
65  Object key = entry.getKey();
66  Object value = entry.getValue();
67 
68  if (StringHelper.isEmptyString(key) || StringHelper.isEmptyString(value)) {
69  continue;
70  }
71  parameters.put(key.toString(), value.toString());
72  }
73 
74  // Overrided test parameters
75  context.getSuite().getXmlSuite().setParameters(parameters);
76  }

メンバ詳解

◆ testData

FileConfiguration org.xdi.oxauth.ConfigurableTest.testData
static

このクラス詳解は次のファイルから抽出されました: