1 | |
package org.jbehave.core.steps; |
2 | |
|
3 | |
import static java.util.Arrays.asList; |
4 | |
|
5 | |
import java.util.List; |
6 | |
|
7 | |
import org.jbehave.core.configuration.Configuration; |
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
public class InstanceStepsFactory extends AbstractStepsFactory { |
13 | |
|
14 | |
private final List<Object> stepsInstances; |
15 | |
|
16 | |
public InstanceStepsFactory(Configuration configuration, Object... stepsInstances) { |
17 | 8 | this(configuration, asList(stepsInstances)); |
18 | 8 | } |
19 | |
|
20 | |
public InstanceStepsFactory(Configuration configuration, List<Object> stepsInstances) { |
21 | 15 | super(configuration); |
22 | 15 | this.stepsInstances = stepsInstances; |
23 | 15 | } |
24 | |
|
25 | |
@Override |
26 | |
protected List<Object> stepsInstances() { |
27 | 14 | return stepsInstances; |
28 | |
} |
29 | |
|
30 | |
} |