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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations