io.split.qos.server.modules.QOSFailWithModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qosrunner Show documentation
Show all versions of qosrunner Show documentation
Framework for running JUnit Tests as a Continous Service (QoS)
package io.split.qos.server.modules;
import com.google.common.base.Preconditions;
import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
import io.split.qos.server.failcondition.FailCondition;
/**
* Simple Module to inject the failed condition.
*/
public class QOSFailWithModule extends AbstractModule {
private final Class extends FailCondition> clazz;
public QOSFailWithModule(Class extends FailCondition> clazz) {
this.clazz = Preconditions.checkNotNull(clazz);
}
@Override
protected void configure() {
bind(FailCondition.class).to(clazz).in(Singleton.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy