-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#114: Update Maven dependencies as far as possible (part1: Cucumber, …
…Selenide)
- Loading branch information
Marcel Pfotenhauer
committed
Mar 23, 2020
1 parent
ae76255
commit 3045e79
Showing
8 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/main/java/io/cucumber/junit/NeodymiumCucumberWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package io.cucumber.junit; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import org.junit.runner.Description; | ||
import org.junit.runner.manipulation.Filter; | ||
import org.junit.runner.manipulation.NoTestsRemainException; | ||
import org.junit.runner.notification.RunNotifier; | ||
import org.junit.runners.ParentRunner; | ||
import org.junit.runners.model.InitializationError; | ||
import org.junit.runners.model.RunnerScheduler; | ||
import org.junit.runners.model.Statement; | ||
|
||
public class NeodymiumCucumberWrapper extends ParentRunner<ParentRunner<?>> | ||
{ | ||
private Cucumber cucumber; | ||
|
||
public NeodymiumCucumberWrapper(Class<?> clazz) throws InitializationError, IOException | ||
{ | ||
super(clazz); | ||
cucumber = new Cucumber(clazz); | ||
} | ||
|
||
// from Cucumber | ||
@Override | ||
protected List<ParentRunner<?>> getChildren() | ||
{ | ||
return cucumber.getChildren(); | ||
} | ||
|
||
@Override | ||
protected Description describeChild(ParentRunner<?> child) | ||
{ | ||
return cucumber.describeChild(child); | ||
} | ||
|
||
@Override | ||
protected void runChild(ParentRunner<?> child, RunNotifier notifier) | ||
{ | ||
cucumber.runChild(child, notifier); | ||
} | ||
|
||
@Override | ||
protected Statement childrenInvoker(RunNotifier notifier) | ||
{ | ||
return cucumber.childrenInvoker(notifier); | ||
} | ||
|
||
@Override | ||
public void setScheduler(RunnerScheduler scheduler) | ||
{ | ||
cucumber.setScheduler(scheduler); | ||
} | ||
|
||
// from ParentsRunner | ||
@Override | ||
public void run(RunNotifier notifier) | ||
{ | ||
cucumber.run(notifier); | ||
} | ||
|
||
@Override | ||
public void filter(Filter filter) throws NoTestsRemainException | ||
{ | ||
cucumber.filter(filter); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters