use of org.testng.annotations.BeforeSuite in project oxAuth by GluuFederation.
the class ConfigurableTest method initTestSuite.
@BeforeSuite
public void initTestSuite(ITestContext context) throws FileNotFoundException, IOException {
String propertiesFile = context.getCurrentXmlTest().getParameter("propertiesFile");
if (StringHelper.isEmpty(propertiesFile)) {
propertiesFile = "target/test-classes/testng.properties";
}
// Load test parameters
// propertiesFile =
// "/Users/JAVIER/IdeaProjects/oxAuth/Client/target/test-classes/testng.properties";
FileInputStream conf = new FileInputStream(propertiesFile);
Properties prop = new Properties();
prop.load(conf);
Map<String, String> parameters = new HashMap<String, String>();
for (Entry<Object, Object> entry : prop.entrySet()) {
Object key = entry.getKey();
Object value = entry.getValue();
if (StringHelper.isEmptyString(key) || StringHelper.isEmptyString(value)) {
continue;
}
parameters.put(key.toString(), value.toString());
}
// Overrided test paramters
context.getSuite().getXmlSuite().setParameters(parameters);
}
use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.
the class TestFind method setupDebug.
@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.
the class TestPath method setupDebug.
@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.
the class TestDelta method setupDebug.
@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.
the class TestDiff method setupDebug.
@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
Aggregations