[weld-dev] CDI JavaSE tck
Emily Jiang
EMIJIANG at uk.ibm.com
Tue Oct 17 10:01:48 EDT 2017
Back to my original question, TestGroups.SE is not supposed to be run by
an application server such as Wildfly, Glassfish, Liberty, right? For
certifying EE8, these tests are supposed to be excluded by JavaEE
runtimes? Are these tests only for JavaSE runtime such as Hammock?
Many thanks,
Emily
===========================
Emily Jiang
WebSphere Application Server, CDI & MicroProfile Development Lead
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
Phone: +44 (0)1962 816278 Internal: 246278
Email: emijiang at uk.ibm.com
Lotus Notes: Emily Jiang/UK/IBM at IBMGB
From: Matej Novotny <manovotn at redhat.com>
To: Martin Kouba <mkouba at redhat.com>
Cc: "John D. Ament" <john.d.ament at gmail.com>, Emily Jiang
<EMIJIANG at uk.ibm.com>, Weld <weld-dev at lists.jboss.org>
Date: 17/10/2017 14:17
Subject: Re: [weld-dev] CDI JavaSE tck
Sorry for later answer, yea the only TCK test is the one which Martin
pointed to.
However, I don't see much need to cover this particular case on EE part.
The section of the spec which defines throwing ISE with multiple providers
belongs to SE part of the spec, so it feel natural that it's tested there.
Though if you feel like we should have even EE test then by all means feel
free to create JIRA ticket for this and I'll eventually get to it.
Matej
----- Original Message -----
> From: "Martin Kouba" <mkouba at redhat.com>
> To: "John D. Ament" <john.d.ament at gmail.com>, "Emily Jiang"
<EMIJIANG at uk.ibm.com>, "Weld" <weld-dev at lists.jboss.org>
> Sent: Tuesday, October 17, 2017 8:53:26 AM
> Subject: Re: [weld-dev] CDI JavaSE tck
>
> Dne 16.10.2017 v 20:30 John D. Ament napsal(a):
> >
> >
> > On Mon, Oct 16, 2017 at 2:07 PM Martin Kouba <mkouba at redhat.com
> > <mailto:mkouba at redhat.com>> wrote:
> >
> > Hi Emily,
> >
> > tests from TestGroups.SE should NOT be run in a Java EE
environment.
> > Note that CDI Bootstrap API should not even work in a Java EE
container
> > (SeContainerInitializer.newInstance() should throw
> > IllegalStateException).
> >
> >
> > Isn't there a TCK test for that?
>
> I think not. There is a test in CDI API which verifies that
> IllegalStateException is thrown if none or multiple service providers
> are found [1]. But it's actually a good idea to create a new TCK test
> with TestGroups.INTEGRATION group to verify ISE is thrown in a Java EE
> container.
>
> M
>
> [1]
>
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cdi-2Dspec_cdi_blob_master_api_src_test_java_org_jboss_cdi_api_test_se_SeContainerInitializerTest.java&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&m=I-wCdin9dELdurPsIgviW7msB3rHLauyQkEtuCi92lY&s=a27X8Pl3e9WrQ7pr8wED7YuL4Jst6Px1uEBdmCUhxGg&e=
>
> >
> >
> > Martin
> >
> > Dne 16.10.2017 v 14:33 Emily Jiang napsal(a):
> > > Hi Matej/Martin,
> > >
> > > I am looking at the CDI 2.0 tck on JavaSE. I saw they are under
the
> > > groups of "SE". Should the tcks be exercised by JavaEE runtime,
e.g.
> > > wildfly, glassfish, Liberty etc? Which profile did you package
the
> > > JavaSE tck?
> > >
> > >
> > > Many thanks,
> > > Emily
> > > ===========================
> > > Emily Jiang
> > > WebSphere Application Server, CDI & MicroProfile Development
Lead
> > >
> > > MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
> > > Phone: +44 (0)1962 816278 <tel:+44%201962%20816278> Internal:
> > > 246278
> > >
> > > Email: emijiang at uk.ibm.com <mailto:emijiang at uk.ibm.com>
> > > Lotus Notes: Emily Jiang/UK/IBM at IBMGB
> > >
> > >
> > > Unless stated otherwise above:
> > > IBM United Kingdom Limited - Registered in England and Wales
with
> > number
> > > 741598.
> > > Registered office: PO Box 41, North Harbour, Portsmouth,
> > Hampshire PO6 3AU
> > >
> > >
> > > _______________________________________________
> > > weld-dev mailing list
> > > weld-dev at lists.jboss.org <mailto:weld-dev at lists.jboss.org>
> > >
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&m=I-wCdin9dELdurPsIgviW7msB3rHLauyQkEtuCi92lY&s=K9UrTNcmNV9c0fHxKjz3lv1vmZaVoutqhQam-ceyOoU&e=
> > >
> >
> > --
> > Martin Kouba
> > Senior Software Engineer
> > Red Hat, Czech Republic
> > _______________________________________________
> > weld-dev mailing list
> > weld-dev at lists.jboss.org <mailto:weld-dev at lists.jboss.org>
> >
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&m=I-wCdin9dELdurPsIgviW7msB3rHLauyQkEtuCi92lY&s=K9UrTNcmNV9c0fHxKjz3lv1vmZaVoutqhQam-ceyOoU&e=
> >
>
> --
> Martin Kouba
> Senior Software Engineer
> Red Hat, Czech Republic
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
>
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.jboss.org_mailman_listinfo_weld-2Ddev&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=jt2y5_gH2oPaja8Vt6NzAZV-iEo6D2jiWeuVYs0H-1U&m=I-wCdin9dELdurPsIgviW7msB3rHLauyQkEtuCi92lY&s=K9UrTNcmNV9c0fHxKjz3lv1vmZaVoutqhQam-ceyOoU&e=
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20171017/ad611268/attachment.html
More information about the weld-dev
mailing list