Skip to content

Commit

Permalink
issue #3390 - align ResourceTypeName with the R4 ResourceType enum
Browse files Browse the repository at this point in the history
I could have sworn I did this before, but its definitely out-of-sync in
main. This changeset re-aligns the two so that:
1. we don't end up trying to us a resource type that doesn't exit in R4
2. we don't miss any resource types that existed in R4 but are being
removed for R4B

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
  • Loading branch information
lmsurpre committed Apr 5, 2022
1 parent f4cfd1a commit 0390f50
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public void testGetSupportedResourceTypes() throws Exception {
ResourcesConfigAdapter resourcesConfigAdapter = new ResourcesConfigAdapter(pg);

Set<String> supportedResourceTypes = resourcesConfigAdapter.getSupportedResourceTypes();
assertEquals(supportedResourceTypes.size(), 141);
assertEquals(supportedResourceTypes.size(), 146);

System.out.println(supportedResourceTypes);

for (Interaction interaction : Interaction.values()) {
supportedResourceTypes = resourcesConfigAdapter.getSupportedResourceTypes(interaction);
assertEquals(supportedResourceTypes.size(), 141);
assertEquals(supportedResourceTypes.size(), 146);
}
}
}
Loading

0 comments on commit 0390f50

Please sign in to comment.