Search in sources :

Example 6 with OfficeHourStrategy

use of org.ff4j.strategy.time.OfficeHourStrategy in project ff4j by ff4j.

the class OfficeHourStrategyTest method testOfficeHour4.

@Test(expected = IllegalArgumentException.class)
public void testOfficeHour4() {
    OfficeHourStrategy ohs = new OfficeHourStrategy();
    Map<String, String> initParams = new HashMap<String, String>();
    initParams.put("specialOpenings", "[08:00-12:00]@2015@-01-01;[08:00-12:00]@2015-01-02");
    ohs.init("f1", initParams);
}
Also used : HashMap(java.util.HashMap) OfficeHourStrategy(org.ff4j.strategy.time.OfficeHourStrategy) Test(org.junit.Test) AbstractFf4jTest(org.ff4j.test.AbstractFf4jTest)

Aggregations

OfficeHourStrategy (org.ff4j.strategy.time.OfficeHourStrategy)6 AbstractFf4jTest (org.ff4j.test.AbstractFf4jTest)6 Test (org.junit.Test)6 HashMap (java.util.HashMap)5 FlippingExecutionContext (org.ff4j.core.FlippingExecutionContext)1 InMemoryFeatureStore (org.ff4j.store.InMemoryFeatureStore)1