remove reflection from test.
This commit is contained in:
parent
66fa9e0d60
commit
3397bb6da3
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue