<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">It's easy to verify if your test
      project is missing some soft dependencies. In your dev
      environment, in Run Configuration of your test -&gt; Plugins Tab:<br>
      1. select plug-ins selected below only<br>
      2. Deselect All<br>
      3. In filter field, type your test plug-in ID to find it in the
      list of plugins.<br>
      4. Select this plug-in.<br>
      5. Clean up the filter.<br>
      6. Press Add Required Plug-ins<br>
      Here we go. Now you can run the test and see if it fails since now
      your test environment includes the same set of plugins which you
      have in your maven build.<br>
      <br>
      On 05/16/2014 10:02 AM, Rob Cernich wrote:<br>
    </div>
    <blockquote
      cite="mid:296806745.5820194.1400259742149.JavaMail.zimbra@redhat.com"
      type="cite">
      <div style="font-family: times new roman, new york, times, serif;
        font-size: 12pt; color: #000000">
        <div>Hey Xavier,<br>
        </div>
        <div><br>
        </div>
        <div>This is a shot in the dark, but you might verify that the
          plugins providing the model provider are listed as
          dependencies for the test plugin.&nbsp; My experience has shown
          that the test environment only includes hard dependencies, so
          if you're relying on something that has a soft link (e.g.
          anything contributed through an extension point), you need to
          make sure the plugin making the contribution (e.g.
          implementing the extension point) is included in the
          dependencies list for your test plugin.&nbsp; It probably works
          fine in your dev env because Eclipse is using the entire set
          of plugins available (i.e. target platform + workspace
          plugins).<br>
        </div>
        <div><br>
        </div>
        <div>Good luck.<br>
        </div>
        <div><br>
        </div>
        <div>Rob<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <hr id="zwchr">
        <blockquote style="border-left:2px solid
#1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">Hello,
          <div><br>
          </div>
          <div>I just got a NPE with tests running from Maven (they run
            fine from PDE, though): &nbsp;<span style="color: rgb(20, 20,
              20); line-height: 14px;">'</span><b>org.eclipse.jst.j2ee.model.ModelProviderManager.</b><span
              style="color: rgb(20, 20, 20); line-height: 14px;"><b>ModelProviderManager.getModelProvider(project)</b>'&nbsp;</span><span
              style="color: rgb(20, 20, 20); line-height: 14px;">returns
              '<b>null</b>' in the WizardPages that I'm trying to test.</span></div>
          <div><br>
          </div>
          <div>For the moment, I'll skip those tests on maven to avoid
            build failures on Jenkins, but if anyone has a clue what I
            should do to get them pass on maven/Jenkins (i.e.,
            initialise the ModelProviderManager ?), please let me know
            ;-)</div>
          <div><br>
          </div>
          <div>Thanks !<br>
            <div>
              <span class="Apple-style-span" style="border-collapse:
                separate; border-spacing: 0px;"><span
                  class="Apple-style-span" style="border-collapse:
                  separate; color: rgb(0, 0, 0); font-family: Helvetica;
                  font-style: normal; font-variant: normal; font-weight:
                  normal; letter-spacing: normal; line-height: normal;
                  orphans: 2; text-align: -webkit-auto; text-indent:
                  0px; text-transform: none; white-space: normal;
                  widows: 2; word-spacing: 0px;
                  -webkit-border-horizontal-spacing: 0px;
                  -webkit-border-vertical-spacing: 0px;
                  -webkit-text-decorations-in-effect: none;
                  -webkit-text-size-adjust: auto;
                  -webkit-text-stroke-width: 0px; ">
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">Best
                    regards,</div>
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">/Xavier<br>
                    <div><br>
                    </div>
                    <br>
                  </div>
                </span></span>
            </div>
            <br>
          </div>
          <br>
          _______________________________________________<br>
          jbosstools-dev mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br>
          <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a></blockquote>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jbosstools-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>