<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 3/9/15 3:16 PM, Tom Zeller wrote:<br>
    </div>
    <blockquote
cite="mid:CAMNmQDT8_aN7smjSe84s1FSbC7S+uDUg=mjEkTrRs+KV_StD=w@mail.gmail.com"
      type="cite">
      <pre wrap="">Happened to notice that
net.shibboleth.idp.saml.session.SAML2SPSessionTest throws an NPE for
me from Eclipse or via Maven on the command line in a clean dev
environment. Probably PEBKAC as Rod would say. Obviously tests pass on
Jenkins. It looks like XMLObjectProviderRegistry getProviderRegistry()
which calls ConfigurationService.get(XMLObjectProviderRegistry.class)
returns null, what do I need to do to fix this ? Is there a missing
runtime dependency or something ?</pre>
    </blockquote>
    <br>
    <br>
    Nothing is being done in the test to ensure that OpenSAML is
    initialized.  If you run the test alone, it's absolutely always
    going to fail.  If you run it as part of many tests in a suite, then
    it may or may not succeed depending on whether some other test has
    previously run that inited OpenSAML.  <br>
    <br>
    The best way to fix is to just have it extend
    OpenSAMLInitBaseTestCase, which is just a simple base class with a
    @BeforeSuite that inits OpenSAML.<br>
    <br>
    This is in general a requirement for any test that needs OpenSAML to
    be initialized before it can run.<br>
    <br>
    <br>
  </body>
</html>