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 30EFE200B35 for ; Tue, 5 Jul 2016 19:57:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2F8A5160A2C; Tue, 5 Jul 2016 17:57:14 +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 4FD7A160A6F for ; Tue, 5 Jul 2016 19:57:13 +0200 (CEST) Received: (qmail 96287 invoked by uid 500); 5 Jul 2016 17:57:12 -0000 Mailing-List: contact users-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@deltaspike.apache.org Delivered-To: mailing list users@deltaspike.apache.org Received: (qmail 96263 invoked by uid 99); 5 Jul 2016 17:57:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 17:57:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B30F91A5EE3 for ; Tue, 5 Jul 2016 17:57:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.179 X-Spam-Level: ** X-Spam-Status: No, score=2.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4Xtq0rlCY6FB for ; Tue, 5 Jul 2016 17:57:09 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8006D5F472 for ; Tue, 5 Jul 2016 17:57:09 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id f189so239895921oig.3 for ; Tue, 05 Jul 2016 10:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tRNOt2GIiH8KOsL7MyJfFC7hLbqAd/pME8DyCBMqFpI=; b=TL6s4ltbcDkDGaYptnYHeCpNIH+BaIU4DtE3VVI0qSUldEG8utuH0oHFHh1bSKtA6N DqMv6GXhNoRiSy89EBubcAPUyuQY6i8GSBGCTAbf6P4VjV9Voi3Qa/ZqgAaAl6hWILQf FjFS0k+FdpCe6G6K0EpffzKlmQu4dai4uC7ej5T5+R0TQrmisnyaD+fuyFOqv8JcCBmc X4hge/VXwG0xv/2PgJY7s+KxBCrM1zXkVhplpl/iI1l9lpUfQkQTupQjTz/I82uNDJvF 0DTiCJ2EuxZPhb2lFsUBtAqzkO75tsYi+7sxO4Ry7hIvqcSbF5rWhWLSFW3NDQV6gTN+ gaLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tRNOt2GIiH8KOsL7MyJfFC7hLbqAd/pME8DyCBMqFpI=; b=Wd9qCIp7NeVmppjYl0Etplj6qSg/yEOrrK9arqf2VLRQx23oFXigLGQbDFIUhyzvkq pQqtwXc2PxdERY6KUR/4HXleQ3zYr5Rk/iJrbTqxPtmy/l24pZqiDqqwPr7G5ytAVeLT Bxt4CPbhwPJGTYXJ26ec99ha39L+BKK3DJSPRnvpUkKYQd1116M8jry/K3iTE85iIVNY MZMuc7cgqShoyITLqq7H/4CPKDSJ4VUTSxxTE+2D72ECCp8pX0ZqZeS9PwELy/Oy1Q7w GqKlWvJYznEUmgmtrxJU/TePpJZ7UbffR/BDAQNjqVhp9tDL3I0OaxcKTuwhhbAO1KMw 5cqw== X-Gm-Message-State: ALyK8tLLguWoGN5ryqWavQTXYFtgbVlU16B3npYzM271fXl9bWgFIAayAERf3JK+a2u++NIC0yzhJNLtQxfCrw== X-Received: by 10.202.218.215 with SMTP id r206mr10465189oig.55.1467741428611; Tue, 05 Jul 2016 10:57:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.237.1 with HTTP; Tue, 5 Jul 2016 10:57:07 -0700 (PDT) In-Reply-To: References: <9D49180E-CACF-4354-B55F-857DBF6E6776@senat.fr> From: Stephen More Date: Tue, 5 Jul 2016 13:57:07 -0400 Message-ID: Subject: Re: Adding DeltaSpike support to Jglue CDI-Unit To: users@deltaspike.apache.org Cc: =?UTF-8?Q?Ludovic_P=C3=A9net?= , bryn@jglue.org Content-Type: multipart/alternative; boundary=001a113d2b787983a30536e72e13 archived-at: Tue, 05 Jul 2016 17:57:14 -0000 --001a113d2b787983a30536e72e13 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I did provide the link. Root project of maven examples: https://github.com/mores/maven-examples Directory that contains the example: https://github.com/mores/maven-examples/tree/master/prime-codi TestCase - org.jglue.cdiunit - https://github.com/mores/maven-examples/blob/master/prime-codi/src/test/jav= a/org/test/TestMultiplication.java TestCase - org.apache.deltaspike.testcontrol - https://github.com/mores/maven-examples/blob/master/prime-codi/src/test/jav= a/org/test/TestControl.java On Tue, Jul 5, 2016 at 1:41 PM, Gerhard Petracek wrote: > hi stephen, > > please provide a link to an example which illustrates the issue. > > regards, > gerhard > > > > 2016-07-05 17:29 GMT+02:00 Stephen More : > > > Here is a non-working example: > > https://github.com/mores/maven-examples/tree/master/prime-codi > > > > TestMultiplication.java - uses org.jglue.cdiunit and works as expected > > TestControl.java - same test but uses testcontrol - error: > > > > Jul 05, 2016 11:24:35 AM > > > > > org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunList= ener > > testFailure > > INFO: [failed] org.test.TestControl#null message: Exception List with 3 > > exceptions: > > Exception 0 : > > org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied > > dependencies for type Product with qualifiers @Default > > at injection point [BackedAnnotatedField] @Inject > > org.test.TestMultiplication.product > > at org.test.TestMultiplication.product(TestMultiplication.java:0) > > > > > > On Tue, Jul 5, 2016 at 10:55 AM, Stephen More > > wrote: > > > > > I am now trying to do the same thing with > > > deltaspike-test-control-module-api, but I am receiving: > > > > > > org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfi= ed > > > dependencies for type Import with qualifiers @Default > > > at injection point [BackedAnnotatedField] @Inject private > > org.Test.Import > > > at org.Test.Import(Test.java:0) > > > > > > Is there a working example using deltaspike-test-control-module-api > > > somewhere ? > > > > > > > > > On Sat, Jun 25, 2016 at 4:59 PM, Ludovic P=C3=A9net > wrote: > > > > > >> I took a look at Jglue and did not understand what it does that > > >> deltaspike test control does not > > >> > > >> https://deltaspike.apache.org/documentation/test-control.html > > >> > > >> Can you please explain me ? > > >> > > >> With kind regards, > > >> > > >> Ludovic > > >> > > >> > > >> Le 25 juin 2016 21:41:37 GMT+02:00, Stephen More < > > stephen.more@gmail.com> > > >> a =C3=A9crit : > > >>> > > >>> I found a tool that allows me to JUnit4 test my CDI JSF backing bea= ns > > >>> http://jglue.org/cdi-unit/ ! > > >>> Right now I know it supports javax.enterprise.context.SessionScoped > and > > >>> javax.faces.view.ViewScoped. > > >>> It does not currently support > > >>> org.apache.deltaspike.core.api.scope.WindowScoped :-( > > >>> > > >>> I opened up issue: https://github.com/BrynCooke/cdi-unit/issues/91 > > >>> > > >>> Can anyone help with a pull request to get DeltaSpike support into > > CDI-Unit > > >>> ? > > >>> > > >>> -Thanks > > >>> Stephen More > > >>> > > >>> > > >> -- > > >> Envoy=C3=A9 de mon appareil Android avec K-9 Mail. Veuillez excuser = ma > > >> bri=C3=A8vet=C3=A9. > > >> > > > > > > > > > --001a113d2b787983a30536e72e13--