Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {zcl_abapgit_auth} = await import("./zcl_abapgit_auth.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_auth.clas.testclasses.abap
class ltcl_test {
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_AUTH-LTCL_TEST';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {};
static METHODS = {"DEFAULT_IS_ALLOW": {"visibility": "I", "parameters": {}}};
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"default_is_allow": this.#default_is_allow.bind(this),
};
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async #default_is_allow() {
let lv_allowed = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
lv_allowed.set((await abap.Classes['ZCL_ABAPGIT_AUTH'].is_allowed({iv_authorization: abap.CharacterFactory.get(15, 'DUMMY_UNIT_TEST')})));
await abap.Classes['CL_ABAP_UNIT_ASSERT'].assert_equals({act: lv_allowed, exp: abap.builtin.abap_true});
}
}
abap.Classes['CLAS-ZCL_ABAPGIT_AUTH-LTCL_TEST'] = ltcl_test;
export {ltcl_test}; |