se.redmind.rmtest.selenium.livestream.LiveTestShutdownHook Maven / Gradle / Ivy
package se.redmind.rmtest.selenium.livestream;
public class LiveTestShutdownHook implements Runnable {
private final RmReportConnection con;
public LiveTestShutdownHook(RmReportConnection con) {
this.con = con;
}
@Override
public void run() {
con.sendSuiteFinished();
con.sendClose();
if (con.isConnected()) {
con.close();
}
}
}