- Revision
- 1005
- Author
- mauro
- Date
- 2008-11-02 03:52:55 -0600 (Sun, 02 Nov 2008)
Log Message
Moved "Pending:" prefix to PendingError. We should re-look at this to have an error/exception formatting strategy - cf JBEHAVE-145.
Modified Paths
Diff
Modified: trunk/jbehave-core/src/java/org/jbehave/scenario/errors/PendingError.java (1004 => 1005)
--- trunk/jbehave-core/src/java/org/jbehave/scenario/errors/PendingError.java 2008-11-02 09:41:01 UTC (rev 1004) +++ trunk/jbehave-core/src/java/org/jbehave/scenario/errors/PendingError.java 2008-11-02 09:52:55 UTC (rev 1005) @@ -5,7 +5,7 @@ private static final long serialVersionUID = 9038975723473227215L; public PendingError(String description) { - super(description); + super("Pending: " + description); } }
Modified: trunk/jbehave-core/src/java/org/jbehave/scenario/steps/StepResult.java (1004 => 1005)
--- trunk/jbehave-core/src/java/org/jbehave/scenario/steps/StepResult.java 2008-11-02 09:41:01 UTC (rev 1004) +++ trunk/jbehave-core/src/java/org/jbehave/scenario/steps/StepResult.java 2008-11-02 09:52:55 UTC (rev 1005) @@ -33,11 +33,11 @@ public static class Pending extends StepResult { public Pending(String step) { - this(step, new PendingError("Pending: " + step)); + this(step, new PendingError(step)); } - public Pending(String stepAsString, PendingError e) { - super(stepAsString, e); + public Pending(String step, PendingError e) { + super(step, e); } @Override @@ -77,8 +77,8 @@ return new Pending(step); } - public static StepResult pending(String stepAsString, PendingError e) { - return new Pending(stepAsString, e); + public static StepResult pending(String step, PendingError e) { + return new Pending(step, e); } public static StepResult notPerformed(String step) {
To unsubscribe from this list please visit:
