You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "Coletta Giacomo, IT" <gi...@prysmian.com> on 2011/11/16 18:25:48 UTC

Pax Exam Karaf Testframework 4.0 and Declarative services

Hi,

 

is possible to test Declarative Services components with the test framework ?

 

I mean, there is a 

 

@Inject 

private ComponentContext context;

 

or something with the same function ?

 

Many thanks

 

Giacomo

 

 

________________________________

From: Coletta Giacomo, IT 
Sent: Wednesday, November 16, 2011 14:17
To: user@karaf.apache.org
Subject: FW: FW: Pax Exam Karaf Testframework 4.0 and Declarative services

 

Yes, the workaround is working, I was able to run my first example test.

I will go on creating a few tests and let you know if I find new problems.

 

Many thanks for the quick support.

 

Ciao

Giacomo

________________________________

From: Andreas Pieber [mailto:anpieber@gmail.com] 
Sent: Wednesday, November 16, 2011 13:42
To: user@karaf.apache.org
Subject: Re: FW: Pax Exam Karaf Testframework 4.0 on Windows

 

The solution Andi proposed is of cause a workaround... But it seams that there are some problems with spaces in the setup; I've created [1] to address the problem and will push a 0.4.1 release quite soon (this week) to fix the problem.

 

I hope you can work with Andi's workaround for now and I'll publish the news of a release here again; thank you very much for the report!

 

Kind regards,

Andreas

 

[1] http://issues.openengsb.org/jira/browse/LAB-101

On Wed, Nov 16, 2011 at 08:11, akuhtz <an...@gmail.com> wrote:

Hi Giacomon,

I use the test framework on Windows sucessfully.
Maybe you can use the same configuration that places the unpackDirectory in
a path without spaces (in my case "target/paxexam/unpack/"):



Kind regards
Andi

--
View this message in context: http://karaf.922171.n3.nabble.com/Pax-Exam-Karaf-Testframework-4-0-on-Windows-tp3510028p3511910.html
Sent from the Karaf - User mailing list archive at Nabble.com.

 

 

___________________________________________________________________________________

 

AVVISO DI RISERVATEZZA

 

Le informazioni contenute nella comunicazione che precede possono essere riservate e confidenziali e sono, comunque, destinate esclusivamente alla persona o all'ente sopraindicati. La confidenzialità, sicurezza e la correttezza dei messaggi di posta elettronica non possono essere garantite. Prysmian potrebbe avere nozione di tutti i messaggi di risposta e/o tutti gli allegati, alla/dalla stessa trasmessi e/o ricevuti. Qualora Lei non fosse la persona alla quale il presente messaggio è destinato, la invitiamo a non procedere ad alcun uso, distribuzione, copiatura od azione ad esso conseguente. Se avete ricevuto questo messaggio per errore La invitiamo ad eliminarlo dandocene gentilmente comunicazione rispondendo a questo messaggio oppure attraverso il “contact us” sul sito web www.prysmian.com <http://www.prysmian.com/> .

___________________________________________________________________________________

 

CONFIDENTIALITY NOTICE

 

This message and any attachment is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, confidential, legally privileged or otherwise exempt from disclosure. The security and integrity of e-mails can not be guaranteed. Any reply to this e-mail and any attachment received may be subject to Prysmian monitoring. 

If you are not the named addressee, you are not authorized to use, distribute, copy or take any action in reliance on this message. The unauthorized use, disclosure, or copying of this communication, or any attachment, is strictly prohibited and may be unlawful. No waiver of confidentiality or any applicable privilege is intended by any mistransmission. If you have received this message in error, please notify the sender immediately by replying to this e-mail or by going to our web-site www.prysmian.com <http://www.prysmian.com/>  on “contact us” and delete all copies of this message and any attachments.

 
___________________________________________________________________________________
 
AVVISO DI RISERVATEZZA
 
Le informazioni contenute nella comunicazione che precede possono essere riservate e confidenziali e sono, comunque, destinate esclusivamente alla persona o all'ente sopraindicati. La confidenzialità, sicurezza e la correttezza dei messaggi di posta elettronica non possono essere garantite. Prysmian potrebbe avere nozione di tutti i messaggi di risposta e/o tutti gli allegati, alla/dalla stessa trasmessi e/o ricevuti. Qualora Lei non fosse la persona alla quale il presente messaggio è destinato, la invitiamo a non procedere ad alcun uso, distribuzione, copiatura od azione ad esso conseguente. Se avete ricevuto questo messaggio per errore La invitiamo ad eliminarlo dandocene gentilmente comunicazione rispondendo a questo messaggio oppure attraverso il “contact us” sul sito web http://www.prysmian.com/.

___________________________________________________________________________________
 
CONFIDENTIALITY NOTICE
 
This message and any attachment is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, confidential, legally privileged or otherwise exempt from disclosure. The security and integrity of e-mails can not be guaranteed. Any reply to this e-mail and any attachment received may be subject to Prysmian monitoring.
If you are not the named addressee, you are not authorized to use, distribute, copy or take any action in reliance on this message. The unauthorized use, disclosure, or copying of this communication, or any attachment, is strictly prohibited and may be unlawful. No waiver of confidentiality or any applicable privilege is intended by any mistransmission. If you have received this message in error, please notify the sender immediately by replying to this e-mail or by going to our web-site http://www.prysmian.com/ on “contact us” and delete all copies of this message and any attachments.

Re: Pax Exam Karaf Testframework 4.0 and Declarative services

Posted by Andreas Pieber <an...@gmail.com>.
Hi Giacomo,

Not sure if we've mentioned it already, but pls keep in mind that you have
to use javax.injection.Injection annotation instead of the paxexam one

Kind regards,
Andreas

On Thu, Nov 17, 2011 at 17:09, akuhtz <an...@gmail.com> wrote:

> Hi,
>
> Just verified that injection of ConfigurationAdmin works, too, after I
> added
> the mavenBundle dependency to config options.
>
> Cheers
> Andi
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Pax-Exam-Karaf-Testframework-4-0-and-Declarative-services-tp3513356p3516253.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

Re: Pax Exam Karaf Testframework 4.0 and Declarative services

Posted by akuhtz <an...@gmail.com>.
Hi,

Just verified that injection of ConfigurationAdmin works, too, after I added
the mavenBundle dependency to config options.

Cheers
Andi

--
View this message in context: http://karaf.922171.n3.nabble.com/Pax-Exam-Karaf-Testframework-4-0-and-Declarative-services-tp3513356p3516253.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Pax Exam Karaf Testframework 4.0 and Declarative services

Posted by akuhtz <an...@gmail.com>.
Hi Giacomo,

I've run a test with injection of EventAdmin service in my test today (with
0.4.1) and it was injected. However can remember that I tried to inject
ConfigurationAdmin service some days ago and this service was not injected
... and is still not injected with 0.4.1 but I'm not sure if this is another
problem.

Cheers
Andi

--
View this message in context: http://karaf.922171.n3.nabble.com/Pax-Exam-Karaf-Testframework-4-0-and-Declarative-services-tp3513356p3516192.html
Sent from the Karaf - User mailing list archive at Nabble.com.