meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
sap_hybris_commerce:development_process:systemsetup_annotation_when_methods_run [2020/04/10 12:24] – All bash commands Antonio Robirosasap_hybris_commerce:development_process:systemsetup_annotation_when_methods_run [2020/04/10 12:39] – formatting Antonio Robirosa
Line 22: Line 22:
  
 ===== Test description ===== ===== Test description =====
-I created a new extension based on the templa yempty and added the property **initialpassword.admin=nimda** to the local.properies. Then I created a class for the test and annotated at class level with:+I created a new extension based on the templa yempty and added the property **initialpassword.admin=nimda** to the local.properies. Then I created a {{ :sap_hybris_commerce:development_process:systemsetupannotationcallstest.java | class for the test}} and annotated at class level with:
 <code java> <code java>
 @SystemSetup(extension = ArecosystemsetuptestConstants.EXTENSIONNAME) @SystemSetup(extension = ArecosystemsetuptestConstants.EXTENSIONNAME)
Line 34: Line 34:
 } }
 </code> </code>
-<WRAP center round important 100%>+<WRAP center round important 60%>
 To make hybris call the methods, I had to create a bean definition in the spring application context. Autowiring without the XML bean definition wasn't working. To make hybris call the methods, I had to create a bean definition in the spring application context. Autowiring without the XML bean definition wasn't working.
 +</WRAP>
 <code xml> <code xml>
     <bean id="systemSetupAnnotationCallsTest" class="org.areco.ecommerce.tests.systemsetup.setup.SystemSetupAnnotationCallsTest" />     <bean id="systemSetupAnnotationCallsTest" class="org.areco.ecommerce.tests.systemsetup.setup.SystemSetupAnnotationCallsTest" />
 </code> </code>
-</WRAP> 
  
  
 +I created a JSON configuration for the update running system which runs the create project data step: {{ :sap_hybris_commerce:development_process:updatesystemconfigfile.json | updatesystemconfigfile.json}} \\
 I ran the following commands and I analysed the log afterwards: I ran the following commands and I analysed the log afterwards:
 <code bash> <code bash>
Line 54: Line 55:
 </code> </code>
  
-Source code: +Source code: {{ :sap_hybris_commerce:development_process:systemsetupannotationcallstest.java | SystemSetupAnnotationCallsTest.java}} {{ :sap_hybris_commerce:development_process:updatesystemconfigfile.json | updatesystemconfigfile.json}}
  
 -- Based on SAP hybris 1905 -- Based on SAP hybris 1905