[
https://issues.apache.org/jira/browse/ARIES-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bartosz Kowalewski updated ARIES-313:
-------------------------------------
Attachment: aries-313-with-eba.diff
Hi Zoe,
I took a quick look at Pax Url and created a test that installs the JDBC
version of the Blog sample using an eba file fetched from Maven repo. This
simple test shows how to fetch an eba file from the inside of a test method.
You may also want to have a Pax Exam option for installing eba files, but this
a completely different story :).
I initially wanted to use the service exposed by the Pax Url bundle:
URLStreamHandlerService mvnHandler = getOsgiService(
URLStreamHandlerService.class, "(url.handler.protocol=mvn)",
DEFAULT_TIMEOUT);
... but with the currently available versions of the
AriesApplicationManager.createAppliaction() method, it was much easier to just
import the org.ops4j.pax.url.mvn package and directly use the its
implementation of java.net.URLStreamHandler.
This new patch supersedes the old one. It contains all the changes that were
present in the first patch.
Best regards,
Bartek
> The samples should all have tests!
> ----------------------------------
>
> Key: ARIES-313
> URL: https://issues.apache.org/jira/browse/ARIES-313
> Project: Aries
> Issue Type: Improvement
> Components: Samples
> Reporter: zoe slattery
> Assignee: zoe slattery
> Attachments: aries-313-with-eba.diff, aries-313.diff
>
>
> Someone on the user mailing list reported that the blog sample wasn't
> working. It wasn't because we had made changes to the bundles and because
> there are no tests for the blog sample the only way to see that it was broken
> was by checking running it. We really need tests for the 'show case' samples
> to make sure that when ever a user tries to run them they just work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.