<html><body><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. 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. 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): <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>' </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>jbosstools-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/jbosstools-dev</blockquote><div><br></div></div></body></html>