Questions tagged [pax-exam]

Pax Exam is a testing toolkit that addresses the need for bundle-level testing.

When a Pax Exam test is run, it starts an OSGi framework, installs and starts a selection of bundles, and then makes an OSGi BundleContext available through which you can make assertions about your bundles, the services that they publish, and the effects that they have on each other.

134 questions
0
votes
1 answer

Using Pax exam without using Maven

For a project I need to try to run tests in an osgi environment, but i haven't the possibility to use Maven for it, so I find it very hard to use as I am not even able to find sources to use Pax exam, for start... Thanks for trying to help me. Have…
0
votes
1 answer

Is pax-exam supposed to simply incorporate ordinary dependencies in the probe bundle?

If I have a dependency of scope 'test' that is not an OSGi bundle, should I expect pax-exam to simply incorporate it in the probe bundle, or do I need to explicitly wrap it? I have a case where neither approach is working., and I'm trying to…
bmargulies
  • 97,814
  • 39
  • 186
  • 310
0
votes
0 answers

OSGI. Waiting for timeout during installation of bundle (tinybundles)

I have a problem running pax exam test under karaf. During an installation of bundle 2015-05-20 14:16:42,644 | DEBUG | FelixStartLevel | BundleManager | 1 - org.apache.karaf.features.core - 3.0.0 | Checking…
Volodymyr Kozubal
  • 1,320
  • 1
  • 12
  • 16
0
votes
0 answers

Error integrating PAX-EXAM with JBehave

Get this error when I try to start a PAX-EXAM based test with Jbehave java.lang.ClassNotFoundException: org.jbehave.core.embedder.Embedder not found by PAXEXAM-PROBE Karaf version: 3.0.0 PAX-EXAM : 3.4.0 org.apache.felix.framework: 4.2.1 Junit :…
Vijay Kumar
  • 2,439
  • 2
  • 32
  • 51
0
votes
1 answer

PAX Exam integration test REST client call to REST service fails with Caused by: java.net.SocketTimeoutException: Read timed out

I have an integration test that injects a rest client into the test class. When that rest client calls a rest service being hosted by the same pax exam test container everything stops for about a minute until I get a long list of Socket Read Timeout…
emmmdeee
  • 101
  • 1
  • 8
0
votes
1 answer

Pax-exam 4 no felix() method

I had been using the following code snippet for OSGi tests in EclipseLink project with Pax Exam 3.3.0: @Configuration public static Option[] config() { return options( repositories("http://repo1.maven.org/maven2"), …
marcelv3612
  • 663
  • 4
  • 10
0
votes
1 answer

Pax Exam how to start multiple containers

for a project i'm working on, we have the necessity to write PaxExam integration tests which run over multiple Karaf containers. The idea would be finding a way to extend/configure PaxExam to start-up a Karaf container (or more) and deploying there…
slux83
  • 686
  • 9
  • 20
0
votes
1 answer

Pax Exam: resolving project dependencies with bundles and wrapped bundles

I'm aware of this answer: Pax Exam: provisioning bundle with all dependencies But it feels like I'm doing something wrong when I have to include bundles that are part of bundles that are external to my project. Here is the error I'm getting:…
Hardy
  • 477
  • 9
  • 19
0
votes
2 answers

pax-exam: are the tests running inside of a bundle?

I have a Maven project that builds a very simple OSGi bundle. No activator; it's only job is to deliver some shared code to an OSGi project. I want to test that I have got the dependencies all set up and embedded correctly. So, I've added pax-exam…
bmargulies
  • 97,814
  • 39
  • 186
  • 310
0
votes
1 answer

OSGi local integration test failing on lean example project

I've set up a maven, osgi, pax, declarative service test project and I'm experiencing strange behaviour. There is a problem with the integration test which uses a declarative service. The tests aborts with a error (the log is below) when ran locally…
mike
  • 4,929
  • 4
  • 40
  • 80
0
votes
2 answers

How to start Equinox Application with startup arguments in Pax Exam?

I want to test my OSGI app in Pax Exam, but i have some trouble with starting Application from one of my plug-ins. I use Equinox and there is some equinox-specific class that extends org.eclipse.equinox.app.IApplication. This class can be then…
wajs
  • 299
  • 3
  • 13
0
votes
1 answer

ClassNotFoundException: org.apache.felix.dm.DependencyActivatorBase with Pax Exam

I am using Pax Exam (3.5.0) for my OSGi unit tests. I have created a test but when I run it I get this stacktrace: java.lang.NoClassDefFoundError: org/apache/felix/dm/DependencyActivatorBase at java.lang.ClassLoader.defineClass1(Native Method) …
Tuno
  • 1,234
  • 1
  • 13
  • 22
0
votes
2 answers

java.lang.AbstractMethodError/ClassCastException when creating integration test for osgi using felix, osgi and PaxRunner Framework

I am trying to create integration test for my bundle. basically I want to mimic the setup I have in normal web app project(wherein the test are in src/test folder) I am almost there except that I have exception when the bundle tries to…
0
votes
1 answer

Editing configuration files in Pax Exam

I am using Pax Exam to perform integration tests to my OSGi application. I have a configuration factory in which I specify the Karaf feature of my application to be installed in the test container and then modify some of a proerty of a .cfg file…
Christina
  • 3,562
  • 3
  • 22
  • 32
0
votes
1 answer

Pax Exam synchronisation issues

I am using Pax Exam to perform integration tests to my OSGi application. The application is comprised of a number of different bundles which I deploy to the test container using a ConfigurationFactory as follows: public class…
Christina
  • 3,562
  • 3
  • 22
  • 32
1 2 3
8
9