-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f7ce20
commit 100a8d8
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
11 changes: 10 additions & 1 deletion
11
e2e-tests/src/test/java/gov/nasa/jpl/aerie/e2e/types/GoalInvocationId.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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
package gov.nasa.jpl.aerie.e2e.types; | ||
|
||
public record GoalInvocationId(int goalId, int invocationId) { } | ||
import javax.json.JsonObject; | ||
|
||
public record GoalInvocationId(int goalId, int invocationId) { | ||
public static GoalInvocationId fromJSON(JsonObject json) { | ||
return new GoalInvocationId( | ||
json.getInt("goal_id"), | ||
json.getInt("goal_invocation_id") | ||
); | ||
} | ||
} |
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