gluu
公開メンバ関数 | 静的公開メンバ関数 | 静的公開変数類 | 全メンバ一覧
org.gluu.oxtrust.action.test.ConfigurableTest クラスabstract
org.gluu.oxtrust.action.test.ConfigurableTest の継承関係図
Inheritance graph
org.gluu.oxtrust.action.test.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.gluu.oxtrust.action.test.ConfigurableTest.createDeployment ( )
inlinestatic
41  {
42  return Deployments.createDeployment();
43  }

◆ initTestSuite()

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

メンバ詳解

◆ testData

FileConfiguration org.gluu.oxtrust.action.test.ConfigurableTest.testData
static

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