SAP Knowledge Base Article - Preview

2025482 - Web context not accessible from JUnit Test - SAP Commerce

Symptom

Beans defined in Webcontext (i.e. in <extension>-web-spring.xml) of the extension are not accessible in JUnits tests. Only the beans shared in the GlobalApplicationContext (i.e. in <extension>-spring.xml) can be tested.


Read more...

Environment

SAP Commerce

Keywords

junit, webcontext, bean, context, application, commerce, soap, webservice , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.