Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSGi Testing

Tags:

java

testing

osgi

Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable.

We're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simple & easy to use method for testing OSGi bundles.

Currently, I have to build the bundle using Maven and then execute a test harness. I'm looking for something like the JUnit test runner for Eclipse, as it will save me a bunch of time.

Is there a quick and easy way to test OSGi bundles?

EDIT: I don't need something to test Eclipse plug ins or GUI components, just OSGi bundles.

EDIT2: Is there some framework that supports JUnit4?

like image 760
fluffels Avatar asked Sep 16 '08 15:09

fluffels


People also ask

What is OSGi used for?

The OSGi (Open Service Gateway Initiative) specification is a Java framework for developing and deploying modular software programs and libraries. The framework was originally managed by the OSGi Alliance, an open standards organization.

How does OSGi bundle work?

How does OSGi work? OSGi is a set of specifications that define a dynamic component system for Java. These specifications allow for a development model in which an application is composed of several components, and then packed into bundles. These components communicate locally and through the network via services.

What is OSGi Service Registry?

The OSGi service registry enables a bundle to publish objects to a shared registry, advertised via a given set of Java interfaces. Published services also have service properties associated with them in the registry.


1 Answers

More recently, you should have a look at Pax Exam: http://team.ops4j.org/wiki/display/paxexam/Pax+Exam

This is the current effort at OPS4J related to testing.

like image 168
Luca Geretti Avatar answered Sep 18 '22 05:09

Luca Geretti