Skip to content

Commit

Permalink
Added the new metadata to fix our activity upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Feb 1, 2024
1 parent f49294b commit 795b547
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,11 @@ private ArrayList<ActivityType> expectedActivityTypesBanananation() {
activityTypes.add(new ActivityType(
"PeelBanana",
Map.of("peelDirection",
new Parameter(0, new ValueSchemaVariant(List.of(
new Variant("fromStem", "fromStem"),
new Variant("fromTip", "fromTip")))))));
new Parameter(0,
new ValueSchemaMeta(Map.of("unit", Json.createObjectBuilder(Map.of("value", "direction")).build()),
new ValueSchemaVariant(List.of(
new Variant("fromStem", "fromStem"),
new Variant("fromTip", "fromTip"))))))));
activityTypes.add(new ActivityType("PickBanana", Map.of("quantity", new Parameter(0, VALUE_SCHEMA_INT))));
activityTypes.add(new ActivityType("RipenBanana", Map.of()));
activityTypes.add(new ActivityType("ThrowBanana", Map.of("speed", new Parameter(0, VALUE_SCHEMA_REAL))));
Expand Down

0 comments on commit 795b547

Please sign in to comment.