Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5B2E9200B65 for ; Wed, 3 Aug 2016 03:47:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 59BC9160AA8; Wed, 3 Aug 2016 01:47:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9FF27160A76 for ; Wed, 3 Aug 2016 03:47:10 +0200 (CEST) Received: (qmail 24652 invoked by uid 500); 3 Aug 2016 01:47:09 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 24639 invoked by uid 99); 3 Aug 2016 01:47:09 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2016 01:47:09 +0000 Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 590441A0118 for ; Wed, 3 Aug 2016 01:47:09 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id j185so261583106oih.0 for ; Tue, 02 Aug 2016 18:47:09 -0700 (PDT) X-Gm-Message-State: AEkoouviVXlEtEMKBxEd6fB8AmLEzgotJ6Y9ooUUx40sArQ7mJulOEJevyJ85XCFN7itf51emDm/jrS1RNwVuw== X-Received: by 10.202.188.213 with SMTP id m204mr35793859oif.85.1470188828513; Tue, 02 Aug 2016 18:47:08 -0700 (PDT) MIME-Version: 1.0 References: <68335598.20160802212823@gmail.com> In-Reply-To: <68335598.20160802212823@gmail.com> From: "John D. Ament" Date: Wed, 03 Aug 2016 01:46:57 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: CDI testing module To: "dev@cxf.apache.org" Content-Type: multipart/alternative; boundary=001a113dcc80e05e8305392102de archived-at: Wed, 03 Aug 2016 01:47:11 -0000 --001a113dcc80e05e8305392102de Content-Type: text/plain; charset=UTF-8 Hi Andriy, Thanks for the prompt reply. On Tue, Aug 2, 2016 at 9:28 PM Andriy Redko wrote: > Hi John, > > Thanks a lot for your fixes, much appreciated and of great value for CDI > users. To answer a couple of your questions / concerns. > > > > *JDA> First, its assuming that Weld is the only testable container. *This > is very true. The reason for that is Weld was the only one implementing > CDI 1.2 at the moment the CXF/CDI integration was done. OpenWebBeans were > behind but there is no obstacles or objects to have a test suite(s) against > it as well, it's been a while OpenWebBeans implements 1.2. > I just realized that the CDI integration has been around for all of the 3.x line. I only found out about it in the last couple of weeks. With that said, I'd like to try to put together a test suite. I'll send it over when ready. If you guys like it, its yours. I created https://issues.apache.org/jira/browse/CXF-6988 > > > > *JDA> Second, its always doing classpath scanning. *This is also true, > as there was an intention to test exactly the way it is > going to be used. The suite also tests against Tomcat and Jetty, embedded > and > WAR based deployments. With that being said, if Arquillian allows to > simplify > the test structure while opening more opportuties to test different > scenarios > (including the ones we already have), it would be great in my opinion. > Sounds good. Some of the things I'd like to make sure are proved out: - Testing both Weld and OWB - Running different parts of the test per deployment. - Ensuring the various tests with Jetty/Jetty Embedded/Tomcat > > Thanks. > > Best Regards, > Andriy Redko > > > > > > > > > > > > *JDA> Hi, JDA> Long time user, first time contributor to CXF. Though I'm > no stranger to JDA> the ASF by any long shot. JDA> I was looking at putting > in some fixes for issues I reported. First one JDA> was a non-problem. > However, when trying to figure out how to add tests to JDA> ensure that > empty application class applications work fine (CXF-6986), I JDA> realized > that the current testing structure in systest wouldn't work. *JDA> > https://github.com/apache/cxf/blob/master/systests/cdi/src/test/java/org/apache/cxf/systest/jaxrs/cdi/AbstractCDITest.java > > > > > > > > > > > > > > > *JDA> It looks like this test code is doing a few odd things. First, its > JDA> assuming that Weld is the only testable container. The ASF actually > hosts JDA> the other CDI impl, OpenWebBeans. Second, its always doing > classpath JDA> scanning. This strategy would mean I need a separate module > to test my JDA> feature, which is a little odd. JDA> I was wondering if > there was any interest in converting this to an JDA> arquillian based > test? The test code could be platform inspecific, JDA> allowing tests to > be created for both CDI impls, improving compatibility. JDA> WDYT? JDA> in > case it helps understand the problem, my proposed changes can be seen JDA> > here: *https://github.com/apache/cxf/pull/150 > > > > *JDA> - John * > --001a113dcc80e05e8305392102de--