-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
641804e
commit 256720c
Showing
11 changed files
with
327 additions
and
689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<DATA> | ||
<MASTER_LANGUAGE>D</MASTER_LANGUAGE> | ||
<STARTING_FOLDER>/</STARTING_FOLDER> | ||
<FOLDER_LOGIC>PREFIX</FOLDER_LOGIC> | ||
<IGNORE> | ||
<item>/.gitignore</item> | ||
<item>/LICENSE</item> | ||
<item>/README.md</item> | ||
<item>/package.json</item> | ||
<item>/.travis.yml</item> | ||
</IGNORE> | ||
</DATA> | ||
</asx:values> | ||
</asx:abap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
*&---------------------------------------------------------------------* | ||
*& Include ZMAKRO_TEST_INJECTION | ||
*&---------------------------------------------------------------------* | ||
|
||
DEFINE create_injection. | ||
|
||
CREATE OBJECT ztest_injection=>self. | ||
|
||
END-OF-DEFINITION. | ||
|
||
DEFINE call_injection. | ||
* call a macro with a active injection | ||
* &1 injection name | ||
* &2 called macro | ||
|
||
in_set_active &1. | ||
&2. | ||
in_set_active &1. | ||
|
||
END-OF-DEFINITION. | ||
|
||
DEFINE in_set_active. | ||
* activate injection | ||
* &1 injection | ||
|
||
ztest_injection=>self->injection_set_active( &1 ). | ||
|
||
END-OF-DEFINITION. | ||
|
||
DEFINE in_set_inactive. | ||
* deactivate injection | ||
* &1 die Injektion | ||
|
||
ztest_injection=>self->injection_set_inactive( &1 ). | ||
|
||
END-OF-DEFINITION. | ||
|
||
DEFINE injection_active. | ||
* check injection is active | ||
* &1 injection name | ||
|
||
IF ztest_injection=>injection_is_active( &1 ) = abap_true. | ||
|
||
END-OF-DEFINITION. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_PROG" serializer_version="v1.0.0"> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<PROGDIR> | ||
<NAME>ZMAKRO_TEST_INJECTION</NAME> | ||
<STATE>A</STATE> | ||
<VARCL>X</VARCL> | ||
<SUBC>I</SUBC> | ||
<RLOAD>D</RLOAD> | ||
<UCCHECK>X</UCCHECK> | ||
</PROGDIR> | ||
<TPOOL> | ||
<item> | ||
<ID>R</ID> | ||
<ENTRY>Makro Aufruf Test Injektionen</ENTRY> | ||
<LENGTH>29</LENGTH> | ||
</item> | ||
</TPOOL> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*&---------------------------------------------------------------------* | ||
*& Report ZTEST_INJECTION | ||
*& unit test for injection. Not called from a testclass. It shouldn't fail. | ||
*&---------------------------------------------------------------------* | ||
REPORT ZTEST_INJECTION. | ||
|
||
START-OF-SELECTION. | ||
|
||
CREATE OBJECT ztest_injection=>self. | ||
|
||
TRY. | ||
ztest_injection=>self->injection_set_active( name = 'GH' ). | ||
ASSert 1 = 0. | ||
##NO_HANDLER | ||
CATCH cx_program_not_found. | ||
ENDTRY. | ||
|
||
DATA(is_active) = ztest_injection=>injection_is_active( name = 'GH' ). | ||
assert is_active = abap_false. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_PROG" serializer_version="v1.0.0"> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<PROGDIR> | ||
<NAME>ZTEST_INJECTION</NAME> | ||
<STATE>A</STATE> | ||
<VARCL>X</VARCL> | ||
<SUBC>1</SUBC> | ||
<RSTAT>T</RSTAT> | ||
<RLOAD>D</RLOAD> | ||
<FIXPT>X</FIXPT> | ||
<UCCHECK>X</UCCHECK> | ||
</PROGDIR> | ||
<TPOOL> | ||
<item> | ||
<ID>R</ID> | ||
<ENTRY>Unit-Test-Injektionen</ENTRY> | ||
<LENGTH>21</LENGTH> | ||
</item> | ||
</TPOOL> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |