-
Bug
-
Resolution: Done
-
Blocker
-
1.0.0.CR4
-
None
Suppose following test case:
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")); } }
However, if @ArquillianResource is used for a field injection, such as:
@ArquillianResource URL field;
than test body is no longer executed and all tests are reported as passed even an obvious failure like:
@Test public void testConvertToLowercase() { Assert.fail(); Assert.assertEquals("karel", lowercaseConverter.convertToLowercase("Martin")); }
- blocks
-
CDITCK-229 Migrate 1.1 branch to use Arquillian
- Resolved