Search in sources :

Example 1 with FeatureStrategy

use of com.jeanchampemont.wtfdyum.service.feature.FeatureStrategy in project WTFDYUM by jchampemont.

the class FeatureServiceTest method _init.

@Before
public void _init() {
    initMocks(this);
    final Map<Feature, FeatureStrategy> featureServices = new HashMap<>();
    featureServices.put(Feature.NOTIFY_UNFOLLOW, notifyUnfollowFeatureService);
    sut = new FeatureServiceImpl(featureServices);
}
Also used : HashMap(java.util.HashMap) FeatureServiceImpl(com.jeanchampemont.wtfdyum.service.impl.FeatureServiceImpl) Feature(com.jeanchampemont.wtfdyum.dto.Feature) NotifyUnfollowFeatureStrategy(com.jeanchampemont.wtfdyum.service.feature.impl.NotifyUnfollowFeatureStrategy) FeatureStrategy(com.jeanchampemont.wtfdyum.service.feature.FeatureStrategy) Before(org.junit.Before)

Aggregations

Feature (com.jeanchampemont.wtfdyum.dto.Feature)1 FeatureStrategy (com.jeanchampemont.wtfdyum.service.feature.FeatureStrategy)1 NotifyUnfollowFeatureStrategy (com.jeanchampemont.wtfdyum.service.feature.impl.NotifyUnfollowFeatureStrategy)1 FeatureServiceImpl (com.jeanchampemont.wtfdyum.service.impl.FeatureServiceImpl)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1