Skip to content

Commit

Permalink
Updated hook for Testerra 2
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Jul 20, 2022
1 parent 86dd950 commit e6e1d8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ apply plugin: 'io.codearte.nexus-staging'

ext {
// Minimum required Testerra version
testerraCompileVersion = '1.12'
testerraCompileVersion = '2.0'
// Unit tests use the latest Testerra version
testerraTestVersion = '[1.12,2-SNAPSHOT)'
testerraTestVersion = '[2-SNAPSHOT,3-SNAPSHOT)'

// Default version
moduleVersion = '1-SNAPSHOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@

package eu.tsystems.mms.tic.testerra.plugins.azuredevops.hook;

import com.google.inject.AbstractModule;
import eu.tsystems.mms.tic.testerra.plugins.azuredevops.synchronize.AzureDevOpsResultSynchronizer;
import eu.tsystems.mms.tic.testframework.common.Testerra;
import eu.tsystems.mms.tic.testframework.hooks.ModuleHook;
import eu.tsystems.mms.tic.testframework.report.TesterraListener;

/**
* Created on 17.11.2020
*
* @author mgn
*/
public class AzureDevOpsConnectorHook implements ModuleHook {
public class AzureDevOpsConnectorHook extends AbstractModule implements ModuleHook {

private static AzureDevOpsResultSynchronizer synchronizer;

@Override
public void init() {
synchronizer = new AzureDevOpsResultSynchronizer();
TesterraListener.getEventBus().register(synchronizer);

Testerra.getEventBus().register(synchronizer);
}

@Override
public void terminate() {
synchronizer.shutdown();
TesterraListener.getEventBus().unregister(synchronizer);
Testerra.getEventBus().unregister(synchronizer);
}
}

0 comments on commit e6e1d8f

Please sign in to comment.