[JBoss JIRA] Created: (ARQ-563) @ArquillianResource in TestNG based tests causes test body not to be evaluated
by Karel Piwko (JIRA)
@ArquillianResource in TestNG based tests causes test body not to be evaluated
------------------------------------------------------------------------------
Key: ARQ-563
URL: https://issues.jboss.org/browse/ARQ-563
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Test Protocol SPIs and Implementation
Affects Versions: 1.0.0.CR4
Environment: Surefire 2.7.2, 2.9
TestNG 5.14.6, 5.14.9
AS 7.0.1 web
Reporter: Karel Piwko
Priority: Blocker
Suppose following test case:
{code}
public class LowercaseConverterTest extends Arquillian {
@Inject
private LowercaseConverter lowercaseConverter;
@Deployment
public static JavaArchive createTestArchive() {
return ShrinkWrap
.create(JavaArchive.class, "test.jar")
.addClasses(LowercaseConverter.class)
.addAsManifestResource(EmptyAsset.INSTANCE,
ArchivePaths.create("beans.xml"));
}
@Test
public void testConvertToLowercase() {
Assert.assertEquals("martin",
lowercaseConverter.convertToLowercase("Martin"));
}
}
{code}
However, if @ArquillianResource is used for a field injection, such as:
{code}
@ArquillianResource URL field;
{code}
than test body is no longer executed and *all tests are reported as passed* even an obvious failure like:
{code}
@Test
public void testConvertToLowercase() {
Assert.fail();
Assert.assertEquals("karel",
lowercaseConverter.convertToLowercase("Martin"));
}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (ARQ-997) Provide Arquillian Core functionality as OSGi Bundle
by Thomas Diesler (JIRA)
Thomas Diesler created ARQ-997:
----------------------------------
Summary: Provide Arquillian Core functionality as OSGi Bundle
Key: ARQ-997
URL: https://issues.jboss.org/browse/ARQ-997
Project: Arquillian
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Base Implementation, OSGi Containers
Reporter: Thomas Diesler
Assignee: Thomas Diesler
(10:06:40 AM) tdiesler: mgoldmann, lets talk about the individual sub task. Embedded ARQ Core functionality for example. Instead of embedding the jars arq-osgi could include the *.class files. I suppose that is equally unacceptable, right?
(10:07:22 AM) akurtakov: tdiesler: if they are not built from source yes
(10:07:27 AM) mgoldmann: yes, classes are unpcettable too, you can embed what you just build (arq-osgi jars)
(10:08:19 AM) tdiesler: mgoldmann, but arq core was build by some other process - noi?
(10:08:53 AM) mgoldmann: yes, so we cannot embed it
(10:09:13 AM) mgoldmann: but we can bundle arq-core in a jar at the time of building arq-core
(10:09:15 AM) tdiesler: mgoldmann, that process could make an aggregated bundle that arq-osgi could use (i.e. import packages from)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months