Hi all,

You all have been very helpful as I continuing learning about Pax Exam testing. 
After some time, I patched the oak bundles version to 1.32. My test logs the 
bundles names and states for each; as shown below all bundles but one bundle 
report status:active
...
message=org.apache.sling.auth.form:1.0.14state:active
message=org.apache.jackrabbit.oak-jackrabbit-api:1.32.0state:active
message=org.apache.jackrabbit.oak-auth-external:1.32.0state:active
message=org.ops4j.pax.tipi.junit:4.12.0.1state:active
message=org.ops4j.pax.tipi.hamcrest.core:1.3.0.1state:active
message=org.ops4j.pax.exam.invoker.junit:4.13.3state:active
message=slf4j.api:1.7.26state:active
…

But my test bundle status reports "resolved"
message=org.apache.sling.auth.saml2:0.2.0.SNAPSHOTstate:4

My tests fail because I cannot get references to the services. As I mentioned, 
there are no more obvious wiring dependency errors in the logs. The bundle 
under test Activator logs messages, which look good. 

When my IT test tries to @Inject a reference
@Inject
Saml2UserMgtService saml2UserMgtService;
it fails
[ERROR] org.apache.sling.auth.saml2.impl.SamlHandlerIT.test_setup  Time 
elapsed: 0.073 s  <<< ERROR!
java.lang.ClassNotFoundException: 
org.apache.sling.auth.saml2.Saml2UserMgtService not found by 
PAXEXAM-PROBE-dc8debbd-300f-46cf-b125-75a8e3e9ebc9 [198]


Here is the IT test
https://github.com/apache/sling-whiteboard/blob/SLING-9397/improve-test-coverage/saml-handler/src/test/java/org/apache/sling/auth/saml2/impl/SamlHandlerIT.java
 
<https://github.com/apache/sling-whiteboard/blob/SLING-9397/improve-test-coverage/saml-handler/src/test/java/org/apache/sling/auth/saml2/impl/SamlHandlerIT.java>


Activator looks like this
https://github.com/apache/sling-whiteboard/blob/SLING-9397/improve-test-coverage/saml-handler/src/main/java/org/apache/sling/auth/saml2/Activator.java
 
<https://github.com/apache/sling-whiteboard/blob/SLING-9397/improve-test-coverage/saml-handler/src/main/java/org/apache/sling/auth/saml2/Activator.java>


If you looked at any of this, thank so much!

Cris 


Reply via email to