@Test public void testListFeatures() throws JspException { featureDescriptors.put("featureName", new FeatureDescriptor(){{ setName("featureName"); setState(FeatureState.ENABLED); }}); tag.doStartTag(); assertEquals("featureName = enabled<br />", writer.toString()); }
@Override public int doStartTag() throws JspException { JspWriter writer = null; try { final FeatureDescriptorsMap featureDescriptorsMap = FlipWebContext.getFeatureDescriptors(); writer = pageContext.getOut(); for (final FeatureDescriptor featureDescriptor : featureDescriptorsMap.values()) { writer.write(featureDescriptor.getName()); writer.write(" = "); writer.write(featureDescriptor.getState().name().toLowerCase()); writer.write("<br />"); } } catch (final IOException ex) { Logger.getLogger(SessionFeaturesTag.class.getName()).log(Level.SEVERE, null, ex); } finally { } return SKIP_BODY; }
SessionFeaturesTag extends TagSupport { @Override public int doStartTag() throws JspException { JspWriter writer = null; try { final FeatureDescriptorsMap featureDescriptorsMap = FlipWebContext.getFeatureDescriptors(); writer = pageContext.getOut(); for (final FeatureDescriptor featureDescriptor : featureDescriptorsMap.values()) { writer.write(featureDescriptor.getName()); writer.write(" = "); writer.write(featureDescriptor.getState().name().toLowerCase()); writer.write("<br />"); } } catch (final IOException ex) { Logger.getLogger(SessionFeaturesTag.class.getName()).log(Level.SEVERE, null, ex); } finally { } return SKIP_BODY; } }
SessionFeaturesTag extends TagSupport { @Override public int doStartTag() throws JspException { JspWriter writer = null; try { final FeatureDescriptorsMap featureDescriptorsMap = FlipWebContext.getFeatureDescriptors(); writer = pageContext.getOut(); for (final FeatureDescriptor featureDescriptor : featureDescriptorsMap.values()) { writer.write(featureDescriptor.getName()); writer.write(" = "); writer.write(featureDescriptor.getState().name().toLowerCase()); writer.write("<br />"); } } catch (final IOException ex) { Logger.getLogger(SessionFeaturesTag.class.getName()).log(Level.SEVERE, null, ex); } finally { } return SKIP_BODY; }  }
SessionFeaturesTag extends TagSupport { @Override public int doStartTag() throws JspException { JspWriter writer = null; try { final FeatureDescriptorsMap featureDescriptorsMap = FlipWebContext.getFeatureDescriptors(); writer = pageContext.getOut(); for (final FeatureDescriptor featureDescriptor : featureDescriptorsMap.values()) { writer.write(featureDescriptor.getName()); writer.write(" = "); writer.write(featureDescriptor.getState().name().toLowerCase()); writer.write("<br />"); } } catch (final IOException ex) { Logger.getLogger(SessionFeaturesTag.class.getName()).log(Level.SEVERE, null, ex); } finally { } return SKIP_BODY; }  @Override int doStartTag(); }
SessionFeaturesTag extends TagSupport { @Override public int doStartTag() throws JspException { JspWriter writer = null; try { final FeatureDescriptorsMap featureDescriptorsMap = FlipWebContext.getFeatureDescriptors(); writer = pageContext.getOut(); for (final FeatureDescriptor featureDescriptor : featureDescriptorsMap.values()) { writer.write(featureDescriptor.getName()); writer.write(" = "); writer.write(featureDescriptor.getState().name().toLowerCase()); writer.write("<br />"); } } catch (final IOException ex) { Logger.getLogger(SessionFeaturesTag.class.getName()).log(Level.SEVERE, null, ex); } finally { } return SKIP_BODY; }  @Override int doStartTag();  }