dpishchukhin / org.knowhowlab.osgi.testing Goto Github PK
View Code? Open in Web Editor NEWOSGi Testing Utils
License: Apache License 2.0
OSGi Testing Utils
License: Apache License 2.0
See https://groups.google.com/forum/#!topic/knowhowlab-osgi-testing/gXRpKRTTL3s
Basically there needs to be a way to assert that an event is posted when the event will be triggered by a call from the test code itself. The following will likely miss the event.
fireEvent(topicX);
assertEvent(topicX, 500);
And the following will fail before the event is ever fired:
assertEvent(topicX, 500);
fireEvent(topicX);
Perhaps something like:
EventListener listener = new EventListener(topicX, filter);
fireEvent(topicX);
listener.assertEvent(500);
when using any bundle assertion method, as the assertBundleAvailable("org.my.bundle", new Version("6.0.0")) and it fails then I get this kind of message:
java.lang.AssertionError: null
Would be nice to get a default message, probably "Bundle 'org.my.bundle' is not available"
Create an artifact with utils and assertions together.
now that osgi 6 is out with consolidated support of resources capabilities, would be good to have methods to assert that the bundle provides or requires the right capabilities (between others) at IT runtime...
I think the implementation in
is incorrect.
Instead the call must wait for the specified amount (timeout). If it sees the service to be null once within that timeframe, it should return true.
Right now the call returns "false" even though i said that i expect the service goes away within the next 1000ms. E.g. because i just removed a configuration object for a managed factory service.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.