Skip to content

Commit 59b95fe

Browse files
committed
feat: implement gherkin tests
Signed-off-by: christian.lutnik <[email protected]>
1 parent 837418f commit 59b95fe

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/test/java/dev/openfeature/sdk/e2e/steps/ContextSteps.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ public void someFlagWasEvaluated() {
7474

7575
@Then("The merged context contains an entry with key {string} and value {string}")
7676
public void theMergedContextContainsAnEntryWithKeyAndValue(String contextKey, String contextValue) {
77-
assertInstanceOf(ContextStoringProvider.class, state.provider,
77+
assertInstanceOf(
78+
ContextStoringProvider.class,
79+
state.provider,
7880
"In order to use this step, you need to set a ContextStoringProvider");
7981
EvaluationContext ctx = ((ContextStoringProvider) state.provider).getEvaluationContext();
8082
assertNotNull(ctx);
@@ -88,9 +90,10 @@ public void aTableWithLevelsOfIncreasingPrecedence(DataTable levelsTable) {
8890
state.levels = levelsTable.asList();
8991
}
9092

91-
@And("Context entries for each level from API level down to the {string} level, with key {string} and value {string}")
92-
public void contextEntriesForEachLevelFromAPILevelDownToTheLevelWithKeyAndValue(String maxLevel, String key,
93-
String value) {
93+
@And(
94+
"Context entries for each level from API level down to the {string} level, with key {string} and value {string}")
95+
public void contextEntriesForEachLevelFromAPILevelDownToTheLevelWithKeyAndValue(
96+
String maxLevel, String key, String value) {
9497
for (String level : state.levels) {
9598
addContextEntry(key, value, level);
9699
if (level.equals(maxLevel)) {

0 commit comments

Comments
 (0)