Hi Sandro,
I saw this link, thanks.
Now tycho is starting the Aries Blueprint with no problem. I can see
the services being registered on console and seems ok.
But unfortunately those services and beans are not being injected on
the test classes. :( and my tests still failing.
I used to use Guice on non-osgi projects, and with it the classes
should be instantiate by it too before something could be
injected... I'll research to see if this is the same with
blueprint. If was the case maybe I need to use some special
@RunWith().
cheers
Cristiano
On 10/06/11 11:41, Sandro Wyss wrote:
As seen on https://docs.sonatype.org/display/TYCHO/Tycho+reference+card
you should be able to configure the surefire plugin like this:
<configuration>
<testSuite>org.eclipse.equinox.p2.tests</testSuite>
<testtClass>org.eclipse.equinox.p2.tests.AutomatedTests</testClass>
<argLine>-Xmx512m</argLine>
<bundleStartLevel>
<bundle>
<id>org.eclipse.equinox.ds</id>
<level>1</level>
<autoStart>true</autoStart>
</bundle>
</bundleStartLevel>
</configuration>
Cheers, Sandro
On Fri, Jun 10, 2011 at 16:33, Cristiano
Gavião <cvgaviao@xxxxxxxxx>
wrote:
Hi,
The eclipse product that I'm building with Tycho is using
Blueprint as DI framework.
I've tried to inject some services and beans instances in my
integration test classes too, but isn't working (I'm getting
NullPointerException).
Is there a way to do this using tycho-surefire-plugin ?
thanks for any tip
cheers
Cristiano
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
|