de.otto.edison.testsupport.togglz.fallback.FallbackTestFeatureManagerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-testsupport Show documentation
Show all versions of edison-testsupport Show documentation
Test support for Edison Microservices.
package de.otto.edison.testsupport.togglz.fallback;
import org.togglz.core.manager.FeatureManager;
import org.togglz.core.spi.FeatureManagerProvider;
/**
* This {@link FeatureManagerProvider} is a fallback for unit tests. It will return a {@link FallbackTestFeatureManager} which
* will simply enable all features.
*
*/
public class FallbackTestFeatureManagerProvider implements FeatureManagerProvider {
@Override
public int priority() {
return 20;
}
@Override
public FeatureManager getFeatureManager() {
return new FallbackTestFeatureManager();
}
}