Package org.togglz.testing

Source Code of org.togglz.testing.DefaultFeatureStateTest

package org.togglz.testing;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.togglz.core.context.FeatureContext;
import org.togglz.core.repository.FeatureState;

public class DefaultFeatureStateTest {

    @Test
    public void testFeaturesActiveByDefault() {
        assertTrue(MyFeatures.FEATURE_ONE.isActive());
    }

    @Test(expected = UnsupportedOperationException.class)
    public void testFeatureManagerImmutable() {
        FeatureContext.getFeatureManager().setFeatureState(new FeatureState(MyFeatures.FEATURE_ONE, false));
    }

}
TOP

Related Classes of org.togglz.testing.DefaultFeatureStateTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.