Search in sources :

Example 1 with AfterMethod

use of org.testng.annotations.AfterMethod in project che by eclipse.

the class CheBootstrapTest method tearDown.

@AfterMethod
public void tearDown() throws Exception {
    try {
        cheBootstrap.contextDestroyed(new ServletContextEvent(servletContext));
    } catch (Throwable ignored) {
    }
    systemPropertiesHelper.restoreFromBackup();
    IoUtil.deleteRecursive(che);
    IoUtil.deleteRecursive(userCongDir);
    File aliases = new File(che.getParent(), PROPERTIES_ALIASES_CONFIG_FILE);
    if (aliases.exists()) {
        aliases.delete();
    }
    ModuleScanner.modules.clear();
}
Also used : File(java.io.File) ServletContextEvent(javax.servlet.ServletContextEvent) AfterMethod(org.testng.annotations.AfterMethod)

Example 2 with AfterMethod

use of org.testng.annotations.AfterMethod in project head by mifos.

the class SearchCustomerTest method tearDown.

@AfterMethod
public void tearDown() {
    (new MifosPage(selenium)).logout();
    new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
Also used : MifosPage(org.mifos.test.acceptance.framework.MifosPage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AfterMethod(org.testng.annotations.AfterMethod)

Example 3 with AfterMethod

use of org.testng.annotations.AfterMethod in project head by mifos.

the class ClientLoanDisbursalTest method logOut.

@AfterMethod(alwaysRun = true)
public void logOut() {
    new DateTimeService().resetToCurrentSystemDateTime();
    (new MifosPage(selenium)).logout();
}
Also used : DateTimeService(org.mifos.framework.util.DateTimeService) MifosPage(org.mifos.test.acceptance.framework.MifosPage) AfterMethod(org.testng.annotations.AfterMethod)

Example 4 with AfterMethod

use of org.testng.annotations.AfterMethod in project pinot by linkedin.

the class ChaosMonkeyIntegrationTest method tearDown.

@AfterMethod
public void tearDown() {
    for (Process process : _processes) {
        process.destroy();
    }
    FileUtils.deleteQuietly(new File(AVRO_DIR));
    FileUtils.deleteQuietly(new File(SEGMENT_DIR));
}
Also used : File(java.io.File) AfterMethod(org.testng.annotations.AfterMethod)

Example 5 with AfterMethod

use of org.testng.annotations.AfterMethod in project head by mifos.

the class SystemInfoDateTimeTest method tearDown.

@AfterMethod
public void tearDown() {
    (new MifosPage(selenium)).logout();
    new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
Also used : MifosPage(org.mifos.test.acceptance.framework.MifosPage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AfterMethod(org.testng.annotations.AfterMethod)

Aggregations

AfterMethod (org.testng.annotations.AfterMethod)74 File (java.io.File)16 MifosPage (org.mifos.test.acceptance.framework.MifosPage)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)8 ProtocolStack (org.jgroups.stack.ProtocolStack)6 IOException (java.io.IOException)5 HashSet (java.util.HashSet)4 AtlasVertex (org.apache.atlas.repository.graphdb.AtlasVertex)4 Connection (java.sql.Connection)3 SQLException (java.sql.SQLException)3 MockParticipantManager (org.apache.helix.integration.manager.MockParticipantManager)3 JdbcSession (com.evolveum.midpoint.repo.sqlbase.JdbcSession)2 DispatchManager (com.facebook.presto.dispatcher.DispatchManager)2 OServerAdmin (com.orientechnologies.orient.client.remote.OServerAdmin)2 OStorageProxy (com.orientechnologies.orient.core.storage.OStorageProxy)2 RandomAccessFile (java.io.RandomAccessFile)2 Date (java.util.Date)2 ExecutorService (java.util.concurrent.ExecutorService)2 DeleteIndexRequest (org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest)2 Parameters (org.testng.annotations.Parameters)2