io.toast.tk.runtime.report.DefaultTestProgressReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toast-tk-runtime Show documentation
Show all versions of toast-tk-runtime Show documentation
Toast Toolkit Runtime Module contains covers:
- Test Source Adapters
- Test Parsing
- Test Execution
- Test Report generation
The newest version!
package io.toast.tk.runtime.report;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import io.toast.tk.core.event.TestProgressMessage;
import io.toast.tk.runtime.IReportUpdateCallBack;
public class DefaultTestProgressReporter {
private IReportUpdateCallBack reportUpdateCallBack;
public DefaultTestProgressReporter(
final EventBus bus
) {
bus.register(this);
}
public void setReportCallBack(final IReportUpdateCallBack callback){
this.reportUpdateCallBack = callback;
}
@Subscribe
public void handleTestExecutionProgress(final TestProgressMessage progressMessage){
if(this.reportUpdateCallBack != null){
this.reportUpdateCallBack.onUpdate(progressMessage.getMsg());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy