/[Apache-SVN]
ViewVC logotype

Revision 1811732


Jump to revision: Previous Next
Author: csierra
Date: Tue Oct 10 15:52:33 2017 UTC (6 years, 6 months ago)
Changed paths: 4
Log Message:
[Component-DSL] Add concurrency tests

Disabled by default because they take some time.
The tests try to ensure that, when registering a counter effect, the
tuple always will execute it, either when the tuple is closed or in the
same moment if the tuple is already closed.

Same thing goes with OSGiResultImpl. If the result has been closed it
should never start. If, on the contrary, the program held by the result
had been started it should wait for it to finish starting before closing
it. If the program has not been started then the closing handlers will
not be executed.

Understading the close handlers as "counter effects" of the start
handlers, both Tuple and OSGiRsultImpl try to enforce the the net result
is always 0.

Of course the DSL can't make sure that the close handlers are the
"inverse" of the start handlers, or that the DSL users do not embed side
effects in allegedly pure operations.

Changed paths

Path Details
Directoryaries/trunk/component-dsl/component-dsl/src/test/java/org/apache/aries/osgi/functional/internal/OSGiResultImplTest.java added
Directoryaries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/internal/ProbeImpl.java modified , text changed
Directoryaries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/internal/ProbeTests.java modified , text changed
Directoryaries/trunk/component-dsl/itests/src/main/java/org/apache/aries/osgi/functional/test/AsynchronousTest.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26