Skip to content

Commit

Permalink
Add id and version to posters
Browse files Browse the repository at this point in the history
  • Loading branch information
culka committed Oct 30, 2024
1 parent ea8694e commit 597b48b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public class InfoSpotObjectTypeCreator {
public static GraphQLObjectType posterObjectType =
newObject()
.name(OUTPUT_TYPE_POSTER)
.field(netexIdFieldDefinition)
.field(newFieldDefinition()
.name(VERSION)
.type(GraphQLString))
.field(newFieldDefinition()
.name(LABEL)
.type(GraphQLString))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ public void updatePosterWithoutChangingReferences() {
) {
id
poster {
version
label
posterSize
lines
Expand All @@ -587,6 +588,7 @@ public void updatePosterWithoutChangingReferences() {
.body("id", equalTo(updatedInfoSpot.getNetexId()))
.body("poster", hasSize(1))
.appendRootPath("poster[0]")
.body("version", equalTo(Long.toString(updatedPoster.getVersion() + 1)))
.body("label", equalTo(updatedPoster.getLabel()))
.body("posterSize", equalTo(updatedPoster.getPosterSize().value()))
.body("lines", equalTo(newLines));
Expand Down

0 comments on commit 597b48b

Please sign in to comment.