Search in sources :

Example 41 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.

the class AbstractLexicalProcessorTest method setupDebug.

@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
    PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
    PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
Also used : PrismInternalTestUtil(com.evolveum.midpoint.prism.PrismInternalTestUtil) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 42 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.

the class TestProtectedString method setupDebug.

@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
    PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
    PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
Also used : PrismInternalTestUtil(com.evolveum.midpoint.prism.PrismInternalTestUtil) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 43 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.

the class TestMatchingRule method setup.

@BeforeSuite
public void setup() throws SchemaException, SAXException, IOException {
    PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
    PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
    matchingRuleRegistry = MatchingRuleRegistryFactory.createRegistry();
}
Also used : PrismInternalTestUtil(com.evolveum.midpoint.prism.PrismInternalTestUtil) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 44 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project gatk by broadinstitute.

the class BwaMemIntegrationTest method loadIndex.

@BeforeSuite
public void loadIndex() {
    final String imageFile = createTempFile(b37_reference_20_21, ".img").toString();
    BwaMemIndex.createIndexImage(b37_reference_20_21, imageFile);
    index = new BwaMemIndex(imageFile);
}
Also used : BwaMemIndex(org.broadinstitute.hellbender.utils.bwa.BwaMemIndex) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 45 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project Payara by payara.

the class NucleusStartStopTest method setUp.

@BeforeSuite
public void setUp(ITestContext context) throws IOException {
    // Copy testing libraries into Nucleus distribution
    Collection<File> testLibs = new ArrayList<File>();
    context.setAttribute(TEST_LIBS_KEY, testLibs);
    String basedir = System.getProperty("basedir");
    assertNotNull(basedir);
    File addondir = new File(basedir, "target/addon");
    for (Map.Entry<String, String> entry : COPY_LIB.entrySet()) {
        copyLibraries(new File(addondir, entry.getKey()), new File(NucleusTestUtils.getNucleusRoot(), entry.getValue()), testLibs);
    }
    // Start
    assertTrue(nadmin("start-domain"));
}
Also used : ArrayList(java.util.ArrayList) File(java.io.File) HashMap(java.util.HashMap) Map(java.util.Map) BeforeSuite(org.testng.annotations.BeforeSuite)

Aggregations

BeforeSuite (org.testng.annotations.BeforeSuite)65 PrismInternalTestUtil (com.evolveum.midpoint.prism.PrismInternalTestUtil)12 HashMap (java.util.HashMap)12 File (java.io.File)11 WebDriverWait (org.openqa.selenium.support.ui.WebDriverWait)6 FileInputStream (java.io.FileInputStream)5 Properties (java.util.Properties)5 ChromeDriver (org.openqa.selenium.chrome.ChromeDriver)5 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)5 ZNRecordSerializer (org.apache.helix.manager.zk.ZNRecordSerializer)4 ZkClient (org.apache.helix.manager.zk.ZkClient)4 ChromeOptions (org.openqa.selenium.chrome.ChromeOptions)4 Actions (org.openqa.selenium.interactions.Actions)4 IOException (java.io.IOException)3 ArrayList (java.util.ArrayList)3 Random (java.util.Random)3 SubscriptionManagerTasks (rhsm.cli.tasks.SubscriptionManagerTasks)3 SSHCommandResult (com.redhat.qe.tools.SSHCommandResult)2 CloudbreakClient (com.sequenceiq.cloudbreak.client.CloudbreakClient)2 InputStream (java.io.InputStream)2