@Test public void testGetFeatureServiceByPriorityBetweenREquestAttributeAndWebContext() { when(request.getAttribute(eq(JspFlipTag.FEATURE_SERVICE_ATTRIBUTE))).thenReturn(featureService); final FeatureService paramService = mock(FeatureService.class); FlipContext.setFeatureService(paramService); assertEquals(featureService, tag.getFeatureService()); }
@Override protected FeatureService getFeatureService() { return FlipContext.chooseFeatureService( service, getFeatureServiceFromRequest()); }
JspFlipTag extends BaseFlipTag { @Override protected FeatureService getFeatureService() { return FlipContext.chooseFeatureService( service, getFeatureServiceFromRequest()); } }
JspFlipTag extends BaseFlipTag { @Override protected FeatureService getFeatureService() { return FlipContext.chooseFeatureService( service, getFeatureServiceFromRequest()); } JspFlipTag(final FeatureState myState); }
JspFlipTag extends BaseFlipTag { @Override protected FeatureService getFeatureService() { return FlipContext.chooseFeatureService( service, getFeatureServiceFromRequest()); } JspFlipTag(final FeatureState myState); FeatureService getService(); void setService(final FeatureService service); }
JspFlipTag extends BaseFlipTag { @Override protected FeatureService getFeatureService() { return FlipContext.chooseFeatureService( service, getFeatureServiceFromRequest()); } JspFlipTag(final FeatureState myState); FeatureService getService(); void setService(final FeatureService service); static final String FEATURE_SERVICE_ATTRIBUTE; }