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
…3561)

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
  • Loading branch information
lmsurpre authored Apr 5, 2022
1 parent f4cfd1a commit a195cfc
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 143 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
import jakarta.json.JsonObject;

public class ResourcesConfigAdapterTest {
@Test
public void testGetSupportedResourceTypes() throws Exception {
JsonObject json = Json.createObjectBuilder().build();
PropertyGroup pg = new PropertyGroup(json);
ResourcesConfigAdapter resourcesConfigAdapter = new ResourcesConfigAdapter(pg);

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

System.out.println(supportedResourceTypes);

for (Interaction interaction : Interaction.values()) {
supportedResourceTypes = resourcesConfigAdapter.getSupportedResourceTypes(interaction);
assertEquals(supportedResourceTypes.size(), 141);
}
}
@Test
public void testGetSupportedResourceTypes() throws Exception {
JsonObject json = Json.createObjectBuilder().build();
PropertyGroup pg = new PropertyGroup(json);
ResourcesConfigAdapter resourcesConfigAdapter = new ResourcesConfigAdapter(pg);

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

System.out.println(supportedResourceTypes);

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

0 comments on commit a195cfc

Please sign in to comment.