@Test public void testDefaultRule() { assertEquals(FeatureState.ENABLED, rule.process(contextManager)); }
@Override public FeatureState process(final ContextManager contextManager) { if (conditions != null) { for (final FeatureCondition condition : conditions) { if (condition.process(contextManager) != FeatureState.ENABLED) { return null; } } } return state; }
FeatureRule implements FeatureProcessor { @Override public FeatureState process(final ContextManager contextManager) { if (conditions != null) { for (final FeatureCondition condition : conditions) { if (condition.process(contextManager) != FeatureState.ENABLED) { return null; } } } return state; } }
FeatureRule implements FeatureProcessor { @Override public FeatureState process(final ContextManager contextManager) { if (conditions != null) { for (final FeatureCondition condition : conditions) { if (condition.process(contextManager) != FeatureState.ENABLED) { return null; } } } return state; }  }
FeatureRule implements FeatureProcessor { @Override public FeatureState process(final ContextManager contextManager) { if (conditions != null) { for (final FeatureCondition condition : conditions) { if (condition.process(contextManager) != FeatureState.ENABLED) { return null; } } } return state; }  FeatureCondition[] getConditions(); void setConditions(FeatureCondition[] conditions); FeatureState getState(); void setState(FeatureState state); @Override FeatureState process(final ContextManager contextManager); }
FeatureRule implements FeatureProcessor { @Override public FeatureState process(final ContextManager contextManager) { if (conditions != null) { for (final FeatureCondition condition : conditions) { if (condition.process(contextManager) != FeatureState.ENABLED) { return null; } } } return state; }  FeatureCondition[] getConditions(); void setConditions(FeatureCondition[] conditions); FeatureState getState(); void setState(FeatureState state); @Override FeatureState process(final ContextManager contextManager);  }