DeltaSpikeProjectStageActivationStrategy extends AbstractTokenizedActivationStrategy { @Override public Parameter[] getParameters() { return new Parameter[] { ParameterBuilder.create(PARAM_STAGES) .label("Project Stages") .description("A comma-separated list of stage names for which the feature should be active. A stage " + "can be negated by prefixing the name with the NOT operator (!).") }; }  @Override String getId(); @Override String getName(); @Override Parameter[] getParameters(); @Override String getTokenParameterName(); static final String ID; static final String PARAM_STAGES; }
@Test public void testGetParameters() { Parameter[] parameters = strategy.getParameters(); assertEquals(1, parameters.length); Parameter parameter = parameters[0]; assertNotNull(parameter); assertEquals(DeltaSpikeProjectStageActivationStrategy.PARAM_STAGES, parameter.getName()); assertTrue(Strings.isNotBlank(parameter.getLabel())); assertTrue(Strings.isNotBlank(parameter.getDescription())); }