From 3a647ecf58ad9a27f58a33cc0c73d35c5dd1f3a4 Mon Sep 17 00:00:00 2001 From: John Smart Date: Thu, 22 Jun 2017 16:11:55 +0200 Subject: [PATCH] Minor updates --- .gitignore | 1 + gradle/wrapper/gradle-wrapper.properties | 4 +- .../core/listeners/AbstractStepListener.java | 137 ++++++++++++++++++ 3 files changed, 140 insertions(+), 2 deletions(-) create mode 100644 serenity-core/src/main/java/net/serenitybdd/core/listeners/AbstractStepListener.java diff --git a/.gitignore b/.gitignore index 13dd43d773..0987a83f9a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ lib target *.iml *.log +.DS_Store /serenity-core.ipr /serenity-core.iws /serenity-smoketests/todo-demo.ipr diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a2fb875e36..1501816de0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sat Jun 17 09:58:54 BST 2017 +#Wed Jun 21 14:46:12 BST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip diff --git a/serenity-core/src/main/java/net/serenitybdd/core/listeners/AbstractStepListener.java b/serenity-core/src/main/java/net/serenitybdd/core/listeners/AbstractStepListener.java new file mode 100644 index 0000000000..9079e7953a --- /dev/null +++ b/serenity-core/src/main/java/net/serenitybdd/core/listeners/AbstractStepListener.java @@ -0,0 +1,137 @@ +package net.serenitybdd.core.listeners; + +import net.thucydides.core.model.DataTable; +import net.thucydides.core.model.Story; +import net.thucydides.core.model.TestOutcome; +import net.thucydides.core.steps.ExecutedStepDescription; +import net.thucydides.core.steps.StepFailure; +import net.thucydides.core.steps.StepListener; + +import java.util.Map; + +public abstract class AbstractStepListener implements StepListener { + @Override + public void testSuiteStarted(Class storyClass) { + + } + + @Override + public void testSuiteStarted(Story story) { + + } + + @Override + public void testSuiteFinished() { + + } + + @Override + public void testStarted(String description) { + + } + + @Override + public void testFinished(TestOutcome result) { + + } + + @Override + public void testRetried() { + + } + + @Override + public void stepStarted(ExecutedStepDescription description) { + + } + + @Override + public void skippedStepStarted(ExecutedStepDescription description) { + + } + + @Override + public void stepFailed(StepFailure failure) { + + } + + @Override + public void lastStepFailed(StepFailure failure) { + + } + + @Override + public void stepIgnored() { + + } + + @Override + public void stepPending() { + + } + + @Override + public void stepPending(String message) { + + } + + @Override + public void stepFinished() { + + } + + @Override + public void testFailed(TestOutcome testOutcome, Throwable cause) { + + } + + @Override + public void testIgnored() { + + } + + @Override + public void testSkipped() { + + } + + @Override + public void testPending() { + + } + + @Override + public void testIsManual() { + + } + + @Override + public void notifyScreenChange() { + + } + + @Override + public void useExamplesFrom(DataTable table) { + + } + + @Override + public void addNewExamplesFrom(DataTable table) { + + } + + @Override + public void exampleStarted(Map data) { + + } + + @Override + public void exampleFinished() { + + } + + @Override + public void assumptionViolated(String message) { + + } +}