Search in sources :

Example 46 with AfterMethod

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

the class CollectionSheetEntryCustomerAccountTest method logOut.

@AfterMethod
public void logOut() {
    (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 47 with AfterMethod

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

the class CollectionSheetEntryTest method logOut.

@AfterMethod
public void logOut() {
    (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 48 with AfterMethod

use of org.testng.annotations.AfterMethod in project OpenAM by OpenRock.

the class DebugTestTemplate method clean.

@AfterMethod
public void clean() throws IOException {
    delete(new File(debugDirectory));
    count++;
}
Also used : File(java.io.File) AfterMethod(org.testng.annotations.AfterMethod)

Example 49 with AfterMethod

use of org.testng.annotations.AfterMethod in project OpenAM by OpenRock.

the class DebugTestTemplate method clean.

@AfterMethod
public void clean() throws IOException {
    delete(new File(debugDirectory));
    count++;
}
Also used : File(java.io.File) AfterMethod(org.testng.annotations.AfterMethod)

Example 50 with AfterMethod

use of org.testng.annotations.AfterMethod in project oap by oaplatform.

the class AbstractPerformance method afterMethod.

@AfterMethod
@Override
public void afterMethod() throws Exception {
    Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
    root.setLevel(Level.TRACE);
    super.afterMethod();
}
Also used : Logger(ch.qos.logback.classic.Logger) 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