[
https://issues.apache.org/jira/browse/SLING-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14012411#comment-14012411
]
Robert Munteanu commented on SLING-3615:
----------------------------------------
[~egli] - I've tried to find a more generic approach for this. It's a bit hard
for me, since I don't have access to a Mac.
I've verified on another machine that when started on Mac OS X Eclipse does not
define any JRE installations. Therefore I've tried to simplify the current
approach by
- looking for a JRE install from the java.home system property . This is
guaranteed to exist and is very likely what we want in terms of version
- converted the helper into a JUnit rule that can be added to all interested
tests
However, with this fix the BundleDeploymentTest fails but the
ServiceComponentHeaderValidatorTest does not. I think that maybe we need for
stuff to settle after setting the default VM, but I'd rather test with with an
actual Mac.
> it tests in tooling/ide/eclipse-test fail on MacOS due to missing (default)
> JRE
> -------------------------------------------------------------------------------
>
> Key: SLING-3615
> URL: https://issues.apache.org/jira/browse/SLING-3615
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Reporter: Stefan Egli
> Assignee: Robert Munteanu
> Fix For: Sling Eclipse IDE 1.0.0
>
> Attachments: SLING-3616-1.patch
>
>
> As a follow-up of SLING-3564: I'm still getting it failures:
> {code}
> Failed tests:
> deployBundleOnServer_localInstall(org.apache.sling.ide.test.impl.BundleDeploymentTest):
> Unexpected status call for http://localhost:56252/simple-servlet (expected
> 200, got 404)
>
> deployBundleOnServer_jarredInstall(org.apache.sling.ide.test.impl.BundleDeploymentTest):
> Unexpected status call for http://localhost:56252/simple-servlet (expected
> 200, got 404)
>
> wildCardHeaderIsIgnored(org.apache.sling.ide.test.impl.ServiceComponentHeaderValidatorTest):
>
> manifestNotUnderOutputDirectoryIsIgnored(org.apache.sling.ide.test.impl.ServiceComponentHeaderValidatorTest):
>
> missingDescriptorIsReported(org.apache.sling.ide.test.impl.ServiceComponentHeaderValidatorTest):
>
> presentDescriptorIsNotReported(org.apache.sling.ide.test.impl.ServiceComponentHeaderValidatorTest):
> {code}
> The problem can be narrowed down to the fact that the eclipse launched by
> tycho-surefire-plugin does not have a default JRE configured. It complains
> that:
> {code}
> Unbound classpath container: 'Default System Library' in project
> 'test-project-1'
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)