Weld functional tests
by Karel Piwko
Hi all,
there is QA proposal of integrating functional tests into Maven
lifecycle for building weld/seam-examples:
1/ Add an profile "ftest" into pom.xml of weld-examples-parent.
This profile contains all the necessary build executions
(starting container/deploying/running Selenium/
collecting results/undeploying/stopping container),
so this can be shared by examples.
2/ In a example, add the same "ftest" profile with dependency on
ftest-example artifact. This dependency is interval based, so
there is no need to release the example when its ftest changes.
Then add the testsuite for container into src/test/ directory of
example.
3/ Running maven with ftest profile will execute functional tests during
integration-test phase
So, all ftests are maven artifacts, downloaded from repository when
needed, normal build is untouched. We implemented this proposal for
Weld jsf/numberguess example and things are working fine.
There are currently two problems :
a/ Although weld-examples-parent contains ftest profile, this cannot be
used to recursively test all modules, because there is no way how
selectively activate this profile only for modules where this
is applicable (will be working in Maven 3). This shouldn't be the
problem, because in the end examples will be mainly parts of
weld|seam-modules, so this couldn't be used as well.
b/ User is required to pass reference to ftest.properties file with
-Dftest.properties, but this file is not a part of example
distribution. We can add this file or its skeleton to each example,
but it doesn't seem right.
And one open question:
Where will these ftest-examples packages live in SVN repository? I
placed them for the moment into examples/tests, but there might be a
better place.
Any comments on this?
Karel
16 years, 4 months
Where to place functional tests in the (SVN) repository?
by Karel Piwko
Hi all,
I would like to commit functional tests into the SVN repository.
These tests are supposed to exercise functionality of the examples
provided with seam3-modules, weld-examples and/or special examples which
will exercise functionality through multiple seam3-modules (Example).
This tests are basically a multi-module Maven project where each
module is a test scoped dependency of the one of the Example.
I need to have own version tree within a repository, because
I would like to be able manage them individually without being stored in
the Example.
So, I would like to store them in https://svn.jboss.org/repos/weld/ftest
for Weld and https://svn.jboss.org/repos/seam/ftest for Seam 3,
respectively.
WDYT?
Karel
16 years, 4 months
Custom contexts-scopes
by Murat Can ALPAY
Is there a way to register custom contexts ?
As far as I search all the standard context are registered in the
WeldBootStrap class in a not so extensible way ? And Its unclear at least to
me how to add a new one.
Regards,
--
Murat Can ALPAY
http://mcatr.blogspot.com
16 years, 4 months
architecture diagram
by Dan Allen
Has anyone put together an architecture diagram that would help answer this
question:
> Is there an architecture diagram available that shows the relationships
between the Java EE container and CDI?
I think the root of the confusion is that some people are not understanding
the hand-off between CDI and the Java EE container. Probably the most
significant confusion comes from CDI and EJB. I get how it works in my head,
but I'm thinking having a diagram that shows this stuff in motion would
really help people understand it.
I'm mostly noting this down so that I don't forget it ;)
-Dan
--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen
16 years, 4 months
thanking the community
by Dan Allen
When GlassFish V3 was released, I got a note thanking me for the specific
issues that I filed or participated in that were relevant to the release.
That's a pretty cool service. Sure would be nice to do something like that
at JBoss. One use case is that a volunteer can take that e-mail to their
manager and demonstrate that they had an impact. Personal pride is another.
-Dan
--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen
16 years, 4 months
Generic Decorator
by Marius Bogoevici
Can anyone take a quick look at
org.jboss.weld.tests.decorators.generic.PartialDecoratorTest in
weld-core-tests and tell whether this use case is valid or invalid? I
can't seem to find anything prohibiting @Decorators to be themselves
generic (and be applied on @Dependent generic beans).
Thanks,
Marius
16 years, 4 months
JBoss Web Framework Kit and Seam
by Arbi Sookazian
As if EE6 wasn't novel and confusing enough with the change of names like
Web Beans to CDI, EJB Lite and new web/full profiles concept, etc. Now we
have some presumably new product offerings from JBoss:
http://www.jboss.com/pdf/JBbyRH_WFK_Datasheet.pdf
This one comes from out of nowhere: GWT, RichFaces, Struts, Spring, but no
Seam. No Seam. And I thought that RichFaces was an AJAX component library
for JSF. But no mention of JSF in the datasheet. Fantastic.
Oh but wait....
"Along with leading JBoss technologies Hibernate and Seam,
JBoss Web Framework Kit will be included in Red Hat Java
Enterprise Edition application server solutions, JBoss
Enterprise Application Platform and JBoss Enterprise Web
Platform to provide a complete, integrated environment
that supports any type of Java application. For deployments
that use the Apache Tomcat component of JBoss
Enterprise Web Server, JBoss Web Framework Kit can be
easily added to help round out any lightweight Java application
architecture."
I thought EJB Lite and web profile in EE6 was "lightweight", no? Or not
"light" enough? Because Tomcat starts up so fast.
So is JBoss/Redhat trying to gobble up some of SpringSource's customers and
market share and thus boost revenue?
Seam can integrate with Spring as was shown in SiA book. So why isn't Seam
included in this new JBoss WFK?
And does Redhat JEE app server mean JBoss 6 AS? And if yes, does that mean
JBoss 6 includes this WFK? Is it available in the current AS 6.0.0.M1
download?
16 years, 4 months