@Before public void setUp() { this.currEmailProvider = deploymentService.getStackBuilder().getEmailProvider(); deploymentService.getStackBuilder().setEmailProvider(nullEmailProvider); this.currMode = settingsProvider.isProductionMode(); this.currRecycleInfor = settingsProvider.isTrialRecycleInforDomain(); settingsProvider.setProductionMode(false); settingsProvider.setTrialRecycleInforDomain(false); }
@After public void after() { super.after(); deploymentService.getStackBuilder().setEmailProvider(this.currEmailProvider); nullEmailProvider.getAsyncEmails().clear(); nullEmailProvider.getEmails().clear(); settingsProvider.setProductionMode(currMode); settingsProvider.setTrialRecycleInforDomain(currRecycleInfor); }