Hi,

please take a look at the documentation at [1].

regards, Achim

[1] - https://ops4j1.jira.com/wiki/display/PAXEXAM4/Pax+Exam

2017-03-03 8:00 GMT+01:00 Umesh Rajani <rajani1...@gmail.com>:

> Hi Ivo Leitão,
>
> *I'm completely new to testing with pax-exam.*
>
> *Can you pl. tell me what goal have you used to run the test cases and
> making up pax container?*
>
> *I have taken your sample as a reference.*
>
>
> *Thanks in advance!*
>
> On Sunday, February 19, 2017 at 6:20:39 PM UTC+5:30, Ivo Leitão wrote:
>>
>> Thanks !!!
>>
>> It was that. I've changed the pom of the it project from:
>>
>> <dependency>
>> <groupId>org.ops4j.pax.exam</groupId>
>> <artifactId>pax-exam-container-native</artifactId>
>> <version>4.10.0</version>
>> </dependency>
>>
>> to:
>>
>> <dependency>
>> <groupId>org.ops4j.pax.exam</groupId>
>> <artifactId>pax-exam-container-forked</artifactId>
>> <version>4.10.0</version>
>> </dependency>
>>
>>
>>
>> And it worked !
>>
>> Thanks a lot for the help !!
>>
>> Best Regards,
>> Ivo Leitão
>>
>>
>> On Sunday, 19 February 2017 12:28:29 UTC, laeubi wrote:
>>>
>>> Just make sure it is not a classloading-issues can you run it with the
>>> remote-osgi-container?
>>>
>>> Am 19.02.2017 13:15, schrieb Ivo Leitão:
>>>
>>> Hi Iaeubi,
>>>
>>> I've activated scr debug with:
>>>
>>> ...
>>> private Option scrDebug() {
>>> return composite(frameworkProperty("ds.loglevel").value("4"),
>>> frameworkProperty("ds.showTrace").value("true"));
>>> }
>>> ...
>>> @Configuration
>>> public Option[] options() {
>>> return new Option[] { failOnUnresolvedBundles(), keepCaches(),
>>> localMavenRepo(), junitBundles(), config(),
>>> scr(), scrDebug(), newConfiguration(CONFIG_PID).put("message",
>>> MESSAGE).asOption(),
>>> mavenBundle("com.paxexam.ds", "ri").versionAsInProject() };
>>> }
>>> ...
>>>
>>> The output bellow. Unfortunately I've not found nothing relevant (from
>>> what I know of SCR). I've highlighted the relevant information bellow. In
>>> summary by chronological order:
>>>
>>> The configuration is provisioned:
>>>
>>> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.cm.
>>> internal.ConfigurationOptionConfigurationListener] : Created new
>>> configuration for pid paxexam.greeter with properties: {message=Hello from
>>> a declarative service}
>>>
>>> The Scr starts:
>>>
>>> INFO : org.apache.felix.scr (18): Starting with globalExtender setting:
>>> false
>>> INFO : org.apache.felix.scr (18):  Version = 2.0.8
>>>
>>> The component is registered:
>>>
>>> DEBUG: BundleComponentActivator : Bundle [20] active
>>> DEBUG: BundleComponentActivator : Bundle [20] descriptor locations
>>> OSGI-INF/com.paxexam.ds.ri.GreeterImpl.xml
>>> DEBUG: Registering component with pid [paxexam.greeter] for bundle 20
>>> DEBUG: BundleComponentActivator : Bundle [20] ComponentHolder created
>>> for com.paxexam.ds.ri.GreeterImpl
>>> DEBUG: BundleComponentActivator : Bundle [20] May enable component
>>> holder com.paxexam.ds.ri.GreeterImpl
>>> DEBUG: BundleComponentActivator : Bundle [20] Enabling component holder
>>> com.paxexam.ds.ri.GreeterImpl
>>>
>>> I do not see any log stating that the configuration is attached to the
>>> component :-S or why it is not...
>>>
>>>
>>> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - ops4j@googlegroups.com
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ops4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to