-
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.
Support Serenity annotations on non-public test method (@title, @With…
…Tag) #21 * upgrade to Serenity 2.3.9 * Consider annotations on non-public test methods (TestAnnotations) * serenity-bdd/serenity-core#2306 * Ignore stacktrace element for inner interfaces and inner or anonymous classes without a superclass (#2229) #2295 * serenity-bdd/serenity-core#2295 * >> removed previously added workaround
- Loading branch information
1 parent
de6bfed
commit 223694f
Showing
7 changed files
with
50 additions
and
175 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
159 changes: 0 additions & 159 deletions
159
serenity-junit5/src/main/java/net/thucydides/core/reflection/StackTraceAnalyser.java
This file was deleted.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
serenity-junit5/src/test/java/net/serenitybdd/junit5/extension/WhenRunningTitleTests.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,32 @@ | ||
package net.serenitybdd.junit5.extension; | ||
|
||
import net.serenitybdd.junit5.extension.testsupport.SerenityExtensionInnerTest; | ||
import net.serenitybdd.junit5.extension.testsupport.SerenityExtensionTest; | ||
import net.thucydides.core.annotations.Steps; | ||
import net.thucydides.core.annotations.Title; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@SerenityExtensionTest | ||
class WhenRunningTitleTests { | ||
|
||
@Steps | ||
private JUnit5Steps junit5; | ||
|
||
@Test | ||
void the_outcome_should_honor_the_declared_title() { | ||
// when | ||
junit5.executesTestClass(TestWithTitle.class); | ||
|
||
// then | ||
junit5.shouldHaveExactlyOneTestOutcome(); | ||
junit5.outcomeShouldHaveTitle("explicit test title"); | ||
} | ||
|
||
@SerenityExtensionInnerTest | ||
static class TestWithTitle { | ||
@Test | ||
@Title("explicit test title") | ||
void testWithTitle() { | ||
} | ||
} | ||
} |