commit 6cddb986e5cd1d3f64e441a1d6e8950ffa9e275b
Author:     Mauro Talevi <mauro.tal...@aquilonia.org>
AuthorDate: Wed, 7 May 2014 23:18:50 +0200
Commit:     Mauro Talevi <mauro.tal...@aquilonia.org>
CommitDate: Wed, 7 May 2014 23:18:50 +0200

    JBEHAVE-777: Only filter on non-empty parameter meta in example scenarios.

diff --git 
a/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java 
b/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java
index 009f534..f0ba5bd 100644
--- a/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java
+++ b/jbehave-core/src/main/java/org/jbehave/core/embedder/PerformableTree.java
@@ -883,7 +883,8 @@ public class PerformableTree {
         }
 
         public void perform(RunContext context) throws InterruptedException {
-            if 
(!context.filter().allow(parameterMeta(context.configuration().keywords(), 
parameters))) {
+                       Meta parameterMeta = 
parameterMeta(context.configuration().keywords(), parameters);
+                       if (!parameterMeta.isEmpty() && 
!context.filter().allow(parameterMeta)) {
                                return;
                        }
             if 
(context.configuration().storyControls().resetStateBeforeScenario()) {



Reply via email to