-
-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand the messages protocol with keyword types (extracted from #1741) (
#1966) Expand the messages protocol with keyword types Extracted from #1741 for ease of review on request of @aurelien-reeves, implements the `messages` side of #768. Includes minimal Java changes to support the changes in the schema. Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com> Co-authored-by: Aslak Hellesøy <aslak.hellesoy@gmail.com>
- Loading branch information
1 parent
2ed1dae
commit 9a1f793
Showing
24 changed files
with
432 additions
and
20 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
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
38 changes: 38 additions & 0 deletions
38
messages/java/src/generated/java/io/cucumber/messages/types/PickleStepType.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,38 @@ | ||
package io.cucumber.messages.types; | ||
|
||
// Generated code | ||
@SuppressWarnings("unused") | ||
public enum PickleStepType { | ||
|
||
UNKNOWN("Unknown"), | ||
|
||
CONTEXT("Context"), | ||
|
||
ACTION("Action"), | ||
|
||
OUTCOME("Outcome"); | ||
|
||
private final String value; | ||
|
||
PickleStepType(String value) { | ||
this.value = value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
|
||
public String value() { | ||
return this.value; | ||
} | ||
|
||
public static PickleStepType fromValue(String value) { | ||
for (PickleStepType v : values()) { | ||
if (v.value.equals(value)) { | ||
return v; | ||
} | ||
} | ||
throw new IllegalArgumentException(value); | ||
} | ||
} |
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
40 changes: 40 additions & 0 deletions
40
messages/java/src/generated/java/io/cucumber/messages/types/StepKeywordType.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,40 @@ | ||
package io.cucumber.messages.types; | ||
|
||
// Generated code | ||
@SuppressWarnings("unused") | ||
public enum StepKeywordType { | ||
|
||
UNKNOWN("Unknown"), | ||
|
||
CONTEXT("Context"), | ||
|
||
ACTION("Action"), | ||
|
||
OUTCOME("Outcome"), | ||
|
||
CONJUNCTION("Conjunction"); | ||
|
||
private final String value; | ||
|
||
StepKeywordType(String value) { | ||
this.value = value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
|
||
public String value() { | ||
return this.value; | ||
} | ||
|
||
public static StepKeywordType fromValue(String value) { | ||
for (StepKeywordType v : values()) { | ||
if (v.value.equals(value)) { | ||
return v; | ||
} | ||
} | ||
throw new IllegalArgumentException(value); | ||
} | ||
} |
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
Oops, something went wrong.