Sorry Milan ;)
Let me explain it a bit.
With Pax-Exam, you can use the @Inject annotation to inject a service.
So, you can do something like:
public class MyTest extends KarafTestSupport {
@Inject
protected KarService karService;
@Test
public void myTest() throws Exception {
karService.install(new File("file:/path/to/kar").toURI());
}
}
Regards
JB
On 12/18/2014 02:37 PM, Milan Tomic wrote:
Hi JB,
Is there perhaps some online example how can I use KarService with PaxExam?
I am beginner and I don't understand what you have written. For example:
which line of the code in PaxExam test is "after the Karaf bootstrap"
and how to get reference to KarService?
I was searching Web but with no luck.
Thank you in advance,
Milan
On Thursday, December 18, 2014 1:42 PM, Jean-Baptiste Onofré
<[email protected]> wrote:
Hi Milan,
after the Karaf bootstrap, you can use the KarService to install a kar file.
Regards
JB
On 12/18/2014 12:53 PM, Milan Tomic wrote:
> Hi,
>
> Does anyone know how can I specify in PAX EXAM options a KAR file to be
> installed? Using bundle() or something else?
>
> return options(...
> bundle("c:/myKarFile.kar").start()
> ...);
>
> Thank you in advance,
> Milan
--
Jean-Baptiste Onofré
[email protected] <mailto:[email protected]>
http://blog.nanthrax.net <http://blog.nanthrax.net/>
Talend - http://www.talend.com <http://www.talend.com/>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com