Skip to content

Commit

Permalink
testConstraintGenerator not targetting intended version #3095
Browse files Browse the repository at this point in the history
 testConstraintGenerator not targetting intended version #3095

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>

* Remove Sysout

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 authored Dec 8, 2021
1 parent cb106bc commit 1186b88
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static void testConstraintGenerator2() throws Exception {
FHIRRegistryResourceProvider provider = new C4BB100ResourceProvider();
for (FHIRRegistryResource registryResource : provider.getRegistryResources()) {
if (StructureDefinition.class.equals(registryResource.getResourceType())) {
String url = registryResource.getUrl();
String url = registryResource.getUrl() + "|1.0.0";
System.out.println(url);
Class<?> type =
ModelSupport.isResourceType(registryResource.getType()) ? ModelSupport.getResourceType(registryResource.getType()) : Extension.class;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void testConstraintGenerator() throws Exception {
FHIRRegistryResourceProvider provider = new C4BB110ResourceProvider();
for (FHIRRegistryResource registryResource : provider.getRegistryResources()) {
if (StructureDefinition.class.equals(registryResource.getResourceType())) {
String url = registryResource.getUrl();
String url = registryResource.getUrl() + "|1.1.0";
System.out.println(url);
Class<?> type =
ModelSupport.isResourceType(registryResource.getType()) ? ModelSupport.getResourceType(registryResource.getType()) : Extension.class;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void testConstraintGenerator() throws Exception {
FHIRRegistryResourceProvider provider = new USCore311ResourceProvider();
for (FHIRRegistryResource registryResource : provider.getRegistryResources()) {
if (StructureDefinition.class.equals(registryResource.getResourceType())) {
String url = registryResource.getUrl();
String url = registryResource.getUrl() + "|3.1.1";
System.out.println(url);
Class<?> type = ModelSupport.isResourceType(registryResource.getType()) ? ModelSupport.getResourceType(registryResource.getType()) : Extension.class;
for (Constraint constraint : ProfileSupport.getConstraints(url, type)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static void testConstraintGenerator() throws Exception {
for (FHIRRegistryResource registryResource : provider.getRegistryResources()) {
if (StructureDefinition.class.equals(registryResource.getResourceType())) {
assertEquals(registryResource.getVersion().toString(), "4.0.0");
String url = registryResource.getUrl();
String url = registryResource.getUrl() + "|4.0.0";
System.out.println(url);
Class<?> type = ModelSupport.isResourceType(registryResource.getType()) ? ModelSupport.getResourceType(registryResource.getType()) : Extension.class;
for (Constraint constraint : ProfileSupport.getConstraints(url, type)) {
Expand Down

0 comments on commit 1186b88

Please sign in to comment.