<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>I’m facing some difficulties with Spring Autowired elements and the overlay for MitreID I’m working on when running unit tests for the overlay. </div>
<div><br>
</div>
<div>
<div>
<div> @Autowired</div>
<div> private JWTEncryptionAndDecryptionService encryptionService;</div>
</div>
</div>
<div><br>
</div>
<div>The application context for running the unit tests contains:</div>
<div><br>
</div>
<div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><!-- Scan for components --></div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><context:component-scan annotation-config="true" base-package="org.mitre" /></div>
</div>
<div><br>
</div>
<div>And some elements are autowired properly, e.g.</div>
<div><br>
</div>
<div>
<div> @Autowired</div>
<div> public ConfigurationPropertiesBean config;</div>
</div>
<div><br>
</div>
<div>Has anybody faced similar problems?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Luiz</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</body>
</html>