January 23, 2011  
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31

[00:05:57] *** michaelschuetz has joined #jbosstesting
[00:30:56] *** mgoldmann has quit IRC
[00:35:38] *** michaelschuetz has quit IRC
[02:47:40] *** aslak has quit IRC
[04:07:56] *** ldimaggi_ has joined #jbosstesting
[05:11:23] *** ldimaggi_ has quit IRC
[06:35:49] *** hatchetman82 has quit IRC
[08:09:04] *** hatchetman82 has joined #jbosstesting
[08:26:59] <hatchetman82> has anyone else encountered this https://issues.jboss.org/browse/ARQ-104 (injection not working in @Before) after alpha 2 ?
[08:27:01] <jbossbot> jira [ARQ-104] TestEnrichment TestCase injection null in @Before [Closed, Major, Aslak Knutsen] https://issues.jboss.org/browse/ARQ-104
[08:27:13] <hatchetman82> this just happened to me in alpha 4
[08:35:36] <hatchetman82> on, scratch that. my bad
[08:38:28] *** mgoldmann has joined #jbosstesting
[08:50:19] <hatchetman82> my @Before method runs twice - once outside the AS and again inside.
[08:50:21] <hatchetman82> any ideas ?
[09:31:45] *** bgeorges has joined #jbosstesting
[09:35:51] *** bgeorges has quit IRC
[10:03:54] *** bgeorges has joined #jbosstesting
[10:03:54] *** bgeorges has quit IRC
[10:25:55] *** michaelschuetz has joined #jbosstesting
[10:34:28] *** michaelschuetz has quit IRC
[10:40:45] *** michaelschuetz has joined #jbosstesting
[11:04:58] *** michaelschuetz has quit IRC
[11:49:49] *** mgoldmann has quit IRC
[11:55:00] *** aslak has joined #jbosstesting
[11:55:00] *** aslak has quit IRC
[11:55:00] *** aslak has joined #jbosstesting
[12:19:37] <hatchetman82> hey aslak
[12:19:45] <aslak> hatchetman82, heya
[12:20:03] <hatchetman82> quick question - why is my @Before method executed twice ?
[12:20:16] <hatchetman82> once from the junit runner, the other inside the AS
[12:20:21] <aslak> ARQ-56
[12:20:23] <jbossbot> jira [ARQ-56] @Before/@After should only be executed on the server side [Coding In Progress, Major, Aslak Knutsen] https://issues.jboss.org/browse/ARQ-56
[12:20:30] <hatchetman82> ah
[12:20:32] <hatchetman82> ok :-)
[12:20:34] <hatchetman82> thanks
[12:20:44] <aslak> :)
[12:21:09] <hatchetman82> sorry to interrupt your weekend
[12:21:32] <aslak> hehe, weekend?
[12:22:34] <hatchetman82> sunday
[12:23:22] <aslak> hatchetman82, i was just hinting to that i'm working so..
[12:23:54] <hatchetman82> doh
[12:31:02] *** kpiwko has joined #jbosstesting
[12:41:27] <hatchetman82> arquillian @Tests are not executed as part of a transaction ?
[12:41:44] <aslak> hatchetman82, nope
[12:42:10] <hatchetman82> is this by design ?
[12:42:18] <aslak> hatchetman82, @Inject UserTransaction if your using CDI, or @Resource UserTransaction should work as well
[12:42:38] <aslak> yes
[12:42:39] <hatchetman82> i means i need to mess around with UserTransaction whenever i want direct access to an ENtityManager (cant persist() outside a tx)
[12:42:42] <hatchetman82> ok
[12:42:53] <hatchetman82> just aking sure im not doint something ugly for no reason
[12:42:56] <hatchetman82> making*
[12:43:09] <aslak> hatchetman82, we are looking into e.g. support for @Test @TransactionAttribute, but not currently implemented
[12:43:56] <hatchetman82> also, the only way i managed to inject a PU was like this:
[12:44:13] <hatchetman82> @Resource(mappedName = "java:comp/env/entityManager")     @PersistenceContext(unitName = "DataminePU")     private EntityManager entityManager;
[12:44:19] <hatchetman82> which is kinda odd
[12:44:41] <hatchetman82> im guessing jboss parses the @PC but does not inject and then i need the @Res to actually inject ?
[12:45:11] <aslak> all injections into your TestClass are done 'manually' by Arquillian. Your test case is not a managed objec ton the server
[12:46:23] <aslak> so it depends a bit on which enrichers you have enabled. if you're running against a ee6 server, then you will have CDI activated, which can handle @PersistenceContext directly, but on a EE5 server, only @EJB and @Resource injection is handled..
[12:46:26] <hatchetman82> ok then, why 2 annotations ?
[12:46:52] <aslak> so in your case, the @PersistenceUnit is ignored, and the @Resource injection is the one that actually does hte injection
[12:46:58] <hatchetman82> but obviously CDI is still invoked, because someone's populating entityManager into comp/env
[12:47:40] <aslak> the presence of persistence.xml probably does that
[12:54:18] <aslak> jdlee, ping
[13:35:21] *** kpiwko has quit IRC
[14:53:49] *** aslak has quit IRC
[14:54:30] *** aslak has joined #jbosstesting
[15:36:06] *** jharting has joined #jbosstesting
[15:36:06] *** jharting has quit IRC
[15:46:41] *** oskutka has joined #jbosstesting
[15:52:36] *** aslak has quit IRC
[15:53:11] *** aslak has joined #jbosstesting
[16:06:18] *** oskutka has quit IRC
[16:07:52] *** aslak has quit IRC
[16:08:30] *** aslak has joined #jbosstesting
[16:23:29] *** aslak has quit IRC
[16:24:10] *** aslak has joined #jbosstesting
[16:30:51] *** aslak has quit IRC
[16:31:30] *** aslak has joined #jbosstesting
[16:38:37] *** aslak has quit IRC
[16:39:11] *** aslak has joined #jbosstesting
[16:41:49] *** mgoldmann has joined #jbosstesting
[18:02:11] *** ge0ffrey has joined #jbosstesting
[18:10:34] *** jbossbot has quit IRC
[18:10:36] *** dmlloyd has quit IRC
[19:50:38] *** aslak_ has joined #jbosstesting
[19:50:38] *** aslak has quit IRC
[20:33:19] *** michaelschuetz has joined #jbosstesting
[20:49:00] *** michaelschuetz has quit IRC
[21:10:21] *** jeand has joined #jbosstesting
[21:12:39] *** jeand has quit IRC
[21:14:05] *** mgoldmann has quit IRC
[21:41:25] *** nickarls has joined #jbosstesting
[22:50:43] *** ge0ffrey has quit IRC
[22:54:29] *** nickarls has quit IRC
[23:15:59] *** michaelschuetz has joined #jbosstesting
[23:22:47] *** dmlloyd has joined #jbosstesting
[23:23:31] *** jbossbot has joined #jbosstesting

top