1 | |
package org.jbehave.core.failures; |
2 | |
|
3 | |
import java.util.ArrayList; |
4 | |
import java.util.List; |
5 | |
|
6 | |
import org.jbehave.core.steps.StepCreator.PendingStep; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
@SuppressWarnings("serial") |
12 | |
public class PendingStepsFound extends UUIDExceptionWrapper { |
13 | |
|
14 | |
public PendingStepsFound(List<PendingStep> steps) { |
15 | 0 | super(asString(steps)); |
16 | 0 | } |
17 | |
|
18 | |
private static String asString(List<PendingStep> steps) { |
19 | 0 | List<String> list = new ArrayList<String>(); |
20 | 0 | for (PendingStep step : steps) { |
21 | 0 | list.add(step.stepAsString()); |
22 | 0 | } |
23 | 0 | return list.toString(); |
24 | |
} |
25 | |
|
26 | |
} |