Search in sources :

Example 21 with BeforeMethod

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

the class MavenServerManagerTest method setUp.

@BeforeMethod
public void setUp() throws Exception {
    workspaceCache = new MavenWorkspaceCache();
    workspaceCache.put(new MavenKey("org.eclipse.che", "che-ide-subModule", "1.0.0-TEST-SNAPSHOT"), new File(MavenServerManagerTest.class.getResource("/multimoduleProject/subModule/pom.xml").getFile()));
    mavenServer = manager.createMavenServer();
    mavenServer.customize(workspaceCache, new MyMavenTerminal(), new MyMavenServerProgressNotifier(), true, false);
}
Also used : MavenWorkspaceCache(org.eclipse.che.maven.data.MavenWorkspaceCache) MavenKey(org.eclipse.che.maven.data.MavenKey) File(java.io.File) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 22 with BeforeMethod

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

the class MavenProjectManagerTest method setUp.

@BeforeMethod
public void setUp() throws Exception {
    MavenWrapperManager wrapperManager = new MavenWrapperManager(manager);
    projectManager = new MavenProjectManager(wrapperManager, manager, new MavenTerminalImpl(), new MavenServerManagerTest.MyMavenServerProgressNotifier(), workspaceProvider);
    when(workspaceProvider.get()).thenReturn(workspace);
    when(workspace.getRoot()).thenReturn(workspaceRoot);
}
Also used : MavenWrapperManager(org.eclipse.che.plugin.maven.server.MavenWrapperManager) MavenTerminalImpl(org.eclipse.che.plugin.maven.server.core.MavenTerminalImpl) MavenProjectManager(org.eclipse.che.plugin.maven.server.core.MavenProjectManager) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 23 with BeforeMethod

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

the class SavingsDepositTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2009, 9, 9, 8, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
}
Also used : SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 24 with BeforeMethod

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

the class DefaultAdminUserCanLoginTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
}
Also used : AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 25 with BeforeMethod

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

the class SearchCenterTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
}
Also used : AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

BeforeMethod (org.testng.annotations.BeforeMethod)1078 File (java.io.File)60 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)52 IOException (java.io.IOException)49 DateTime (org.joda.time.DateTime)46 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)42 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)41 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)38 Enumeration (java.util.Enumeration)37 Project (com.google.refine.model.Project)33 StringWriter (java.io.StringWriter)26 Properties (java.util.Properties)26 EntityType (org.molgenis.data.meta.model.EntityType)25 ODatabaseDocumentTx (com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx)23 ServletConfig (jakarta.servlet.ServletConfig)22 ServletContext (jakarta.servlet.ServletContext)22 HttpServletRequest (javax.servlet.http.HttpServletRequest)22 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)22 Subject (javax.security.auth.Subject)21 Attribute (org.molgenis.data.meta.model.Attribute)21