Package org.ff4j.strategy.el

Examples of org.ff4j.strategy.el.ExpressionFlipStrategy


        assertFF4j.assertThatFeatureFlipped("D");
    }

    @Test
    public void testExplicitevaluate() {
        ExpressionFlipStrategy efs = new ExpressionFlipStrategy();

        Assert.assertTrue(efs.evaluate("D", ff4j.getStore(), null));
        Assert.assertTrue(efs.evaluate("TOTO", ff4j.getStore(), null));

        FlippingExecutionContext fex = new FlippingExecutionContext();
        fex.putString(ExpressionFlipStrategy.PARAM_EXPRESSION, "D");
        Assert.assertTrue(efs.evaluate("D", ff4j.getStore(), fex));

        fex.putString(ExpressionFlipStrategy.PARAM_EXPRESSION, "TOTO");
        Assert.assertFalse(efs.evaluate("D", ff4j.getStore(), fex));
    }
View Full Code Here

TOP

Related Classes of org.ff4j.strategy.el.ExpressionFlipStrategy

Copyright © 2018 www.massapicom. 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.