[JBoss JIRA] Created: (ARQ-302) OSGi integration not usable with Equinox
by Thomas Diesler (JIRA)
OSGi integration not usable with Equinox
----------------------------------------
Key: ARQ-302
URL: https://jira.jboss.org/browse/ARQ-302
Project: Arquillian
Issue Type: Bug
Components: OSGi Containers
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 1.0.0.Beta1
testBundleContextInjection(org.jboss.test.osgi.framework.simple.SimpleArquillianTestCase) Time elapsed: 0.045 sec <<< ERROR!
java.lang.ClassNotFoundException: org.jboss.test.osgi.framework.simple.SimpleArquillianTestCase
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.jboss.arquillian.osgi.internal.ArquillianBundleActivator$1.loadTestClass(ArquillianBundleActivator.java:62)
at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:133)
It seems that Equinox does not resolve the test bundle as a result of a dynamic import
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQ-272) Allow @Deployment to be optional
by Thomas Diesler (JIRA)
Allow @Deployment to be optional
--------------------------------
Key: ARQ-272
URL: https://jira.jboss.org/browse/ARQ-272
Project: Arquillian
Issue Type: Feature Request
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 1.0.0.Alpha4
OSGi test cases frequently generate non-trivial bundle deployments as part of their test methods.
The bundle that contains the test case is automatically generated by ARQ. To be precise, the test class is always added to the @Deployment. The bundle manifest is generated or extended by the required Import/Export-Package statements.
If @Deployment was missing, ARQ could generate an Archive that contains the test class, which would reduce the noise in ARQ OSGi tests considerably.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQ-193) Create auxillary OSGi test bundle
by Thomas Diesler (JIRA)
Create auxillary OSGi test bundle
---------------------------------
Key: ARQ-193
URL: https://jira.jboss.org/browse/ARQ-193
Project: Arquillian
Issue Type: Task
Components: OSGi Integration
Reporter: Thomas Diesler
Currently the test bundle must contain the test case and a number of Import-Package statemetns related to the test infrastructure
@Deployment
public static JavaArchive createdeployment()
{
final JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class);
archive.setManifest(new Asset()
{
public InputStream openStream()
{
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addBundleActivator(SimpleActivator.class.getName());
// [TODO] generate a separate bundle the contains the test case
builder.addExportPackages(OSGiEmbeddedFrameworkTestCase.class);
builder.addImportPackages("org.jboss.arquillian.junit", "org.jboss.shrinkwrap.api", "org.jboss.shrinkwrap.api.spec");
builder.addImportPackages("javax.inject", "org.junit", "org.junit.runner");
return builder.openStream();
}
});
archive.addClasses(SimpleActivator.class, SimpleService.class);
archive.addClasses(OSGiEmbeddedFrameworkTestCase.class);
return archive;
}
There test bundle should not need to contain the test case nor these additional imports. An auxillary bundle that contains the test case should be generated and installed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQ-304) String based properties cannot be loaded through System properties
by Karel Piwko (JIRA)
String based properties cannot be loaded through System properties
------------------------------------------------------------------
Key: ARQ-304
URL: https://jira.jboss.org/browse/ARQ-304
Project: Arquillian
Issue Type: Bug
Components: Extension - Selenium
Reporter: Karel Piwko
Assignee: Karel Piwko
Priority: Minor
Fix For: 1.0.0.Beta1
Selenium cannot load String based properties in configuration due to missing handler for String based properties.
Caused by: java.lang.IllegalArgumentException: Unable to convert value org.openqa.selenium.firefox.FirefoxDriverto a class: java.lang.String
at org.jboss.arquillian.selenium.SeleniumExtensionConfiguration$SystemPropertyConfiguration.convert(SeleniumExtensionConfiguration.java:439)
at org.jboss.arquillian.selenium.SeleniumExtensionConfiguration$SystemPropertyConfiguration.get(SeleniumExtensionConfiguration.java:387)
at org.jboss.arquillian.selenium.SeleniumExtensionConfiguration.getWebdriverImplementation(SeleniumExtensionConfiguration.java:346)
at org.jboss.arquillian.selenium.instantiator.WebDriverInstantiator.create(WebDriverInstantiator.java:62)
at org.jboss.arquillian.selenium.instantiator.WebDriverInstantiator.create(WebDriverInstantiator.java:38)
at org.jboss.arquillian.selenium.event.SeleniumStartupHandler.prepareContext(SeleniumStartupHandler.java:86)
at org.jboss.arquillian.selenium.event.SeleniumStartupHandler.callback(SeleniumStartupHandler.java:60)
at org.jboss.arquillian.selenium.event.SeleniumStartupHandler.callback(SeleniumStartupHandler.java:48)
at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months