Skip to content

Commit

Permalink
Fixed tests that were broken by adding new MissionModel and ActivityT…
Browse files Browse the repository at this point in the history
…ype properties
  • Loading branch information
cohansen committed Aug 2, 2023
1 parent bbba80c commit 2a519c6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,26 @@ public void naryTreeAnchorChain() {
private static final Topic<Object> delayedActivityDirectiveInputTopic = new Topic<>();
private static final Topic<Object> delayedActivityDirectiveOutputTopic = new Topic<>();
/* package-private*/ static final DirectiveType<Object, Object, Object> delayedActivityDirective = new DirectiveType<>() {
@Override
public String getDescription() {
return "";
}

@Override
public Map<String, String> getParameterDescriptions() {
return Map.of();
}

@Override
public Map<String, String> getParameterUnits() {
return Map.of();
}

@Override
public Map<String, String> getComputedAttributeUnits() {
return Map.of();
}

@Override
public InputType<Object> getInputType() {
return testModelInputType;
Expand All @@ -1091,6 +1111,26 @@ public TaskFactory<Object> getTaskFactory(final Object o, final Object o2) {
private static final Topic<Object> decomposingActivityDirectiveInputTopic = new Topic<>();
private static final Topic<Object> decomposingActivityDirectiveOutputTopic = new Topic<>();
/* package-private */ static final DirectiveType<Object, Object, Object> decomposingActivityDirective = new DirectiveType<>() {
@Override
public String getDescription() {
return "";
}

@Override
public Map<String, String> getParameterDescriptions() {
return Map.of();
}

@Override
public Map<String, String> getParameterUnits() {
return Map.of();
}

@Override
public Map<String, String> getComputedAttributeUnits() {
return Map.of();
}

@Override
public InputType<Object> getInputType() {
return testModelInputType;
Expand Down Expand Up @@ -1216,8 +1256,14 @@ public Object instantiate(
{
return new Object();
}

@Override
public Map<String, String> getResourceTypeUnits() {
return Map.of();
}
}
)
),
Map.of()
);
//endregion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ public String getDynamics(final Querier querier) {

initializer.resource(resourceName, resource);

return initializer.build(ref, new DirectiveTypeRegistry<>(Map.of()));
return initializer.build(ref, new DirectiveTypeRegistry<>(Map.of()), Map.of());
}
}

0 comments on commit 2a519c6

Please sign in to comment.