felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: Integration Tests during maven lifecycle phase integration-test
Date Wed, 18 Sep 2013 11:45:56 GMT
Hi,

you might want to take a look at a project and it's pom on how to best use
Pax-Exam. [1]
But those questions are probably better placed at the ops4j mailinglist :)

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/pom.xml


2013/9/18 Roland <wgl@ids.de>

> Sorry for disturbing. My test does not work. I get an exception on startup.
>
> 13:07:12.114 [main] INFO  o.o.pax.exam.spi.DefaultExamSystem - Pax Exam
> System (Version: 3.2.0) created.
> 13:07:12.125 [main] DEBUG o.ops4j.store.intern.TemporaryStore - Storage
> Area
> is C:\Users\wgl\AppData\Local\Temp\1379502432123-0
> 13:07:12.174 [main] INFO  o.o.pax.exam.junit.impl.ProbeRunner - creating
> PaxExam runner for class
> de.ids.acos.rtu.osgi.test.baseconfwrapperbundle.BaseConfIntegrationTest
> 13:07:12.179 [main] DEBUG o.ops4j.pax.exam.spi.PaxExamRuntime - Found
> TestContainerFactory:
> org.ops4j.pax.exam.nat.internal.NativeTestContainerFactory
> ERROR: Bundle mygroup.mybundle [17] Error starting
> mvn:mygroup/mybundle/1.0.0.0 (org.osgi.framework.BundleException:
> Unresolved
> constraint in bundle mygroup.mybundle [17]: Unable to resolve 17.0: missing
> requirement [17.0] osgi.wiring.package;
> (osgi.wiring.package=org.apache.felix.framework))
>
>
>   @Configuration
>   public Option[] config() {
>      Logger root = (Logger)
> LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
>      root.setLevel(Level.WARN);
>      Option[] conf = options(
>
> systemProperty("org.osgi.framework.startlevel.beginning").value("4"),
>
>
> mavenBundle().groupId("mygroup").artifactId("bybundle").version("1.0.0").startLevel(2).start(),
>         junitBundles());
>      return conf;
>   }
>
> Any suggestions?
>
> Thanks and Regards!
> Roland
>
>
>
> --
> View this message in context:
> http://apache-felix.18485.x6.nabble.com/Integration-Tests-during-maven-lifecycle-phase-integration-test-tp5005004p5005046.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message