remove reflection from test.

This commit is contained in:
Ken Stevens 2021-12-06 11:19:50 -05:00
parent 66fa9e0d60
commit 3397bb6da3
2 changed files with 22 additions and 0 deletions

View File

@ -107,4 +107,12 @@ public class RuleBulkExportImpl extends BaseRule {
public void setAppliesToAny() { public void setAppliesToAny() {
myWantAnyStyle = true; myWantAnyStyle = true;
} }
String getGroupId() {
return myGroupId;
}
BulkDataExportOptions.ExportStyle getWantExportStyle() {
return myWantExportStyle;
}
} }

View File

@ -1,5 +1,7 @@
package ca.uhn.fhir.rest.server.interceptor.auth; package ca.uhn.fhir.rest.server.interceptor.auth;
import ca.uhn.fhir.rest.api.server.bulk.BulkDataExportOptions;
public final class OperationRuleTestUtil { public final class OperationRuleTestUtil {
private OperationRuleTestUtil() {} private OperationRuleTestUtil() {}
@ -14,4 +16,16 @@ public final class OperationRuleTestUtil {
public static boolean isAllowAllResponses(IAuthRule theRule) { public static boolean isAllowAllResponses(IAuthRule theRule) {
return ((OperationRule)theRule).isAllowAllResponses(); return ((OperationRule)theRule).isAllowAllResponses();
} }
public static boolean isAppliesToAnyType(IAuthRule theRule) {
return ((OperationRule)theRule).isAppliesToAnyType();
}
public static String getGroupId(IAuthRule theRule) {
return ((RuleBulkExportImpl)theRule).getGroupId();
}
public static BulkDataExportOptions.ExportStyle getWantExportStyle(IAuthRule theRule) {
return ((RuleBulkExportImpl)theRule).getWantExportStyle();
}
} }