[webbeans-dev] [TCK] ContextTest#testGetContextWithTooManyActiveContextsFails
by Mark Struberg
Hi!
I have a question on the
ContextTest#testGetContextWithTooManyActiveContextsFails()
The spec says that 2 _active_ contexts may not be registered at the same time.
However, you assume an IllegalArgumentException to be thrown if two active contexts exists while calling the addContext() function (btw cannot find this in the Spec).
On the other hand, the Spec requests to throw an IllegalStateException for the getContext() if two active contexts exist.
Can we harmonise this?
Or if ok the way it is, explain the background?
This imho seams to interfere with the 'general rules' of jsr-299 Exceptions you (or Gavin) mentioned in a post a few months ago
txs and LieGrue,
strub
17 years
[webbeans-dev] The TCK harness
by Pete Muir
If you watch Web Beans SVN, you will have seen a flurry of activity
around the TCK. The TCK harness is now out of development (perhaps
beta quality) and supports:
* reusing the same test cases for incontainer and standalone tests
* declarative definition of test artifacts (a list of classes/xml DDs
for standalone, WAR or EAR for incontainer)
* an html debug mode for incontainer tests
* ability to launch tests and test cases from the IDE, both
incontainer and standalone
* deployment API (currently implemented for JBoss AS)
* porting API which all JSR299 impls must implement to run the TCK
(access to the current manager, ability to activate and deactivate
contexts as needed)
Still to come:
* Ability to execute servlet based requests to test multi-request JSF
and Servlet capabilities (mainly conversation support)
* multiple artifact deployment to support JMS testing and remote EJB
testing
* test launcher for local JVM incontainer tests (EEJB mode)
If you want to read more about developing tests, take a look at http://seamframework.org/WebBeans/JSR299TCKHarness
(still very terse) or if you are interested in using the TCK, take a
look at http://seamframework.org/WebBeans/JSR299TCKPortingPackage -
OpenWebBean's guys, and other JSR299 implementors, I would love your
feedback on using the TCK :-)
Best,
Pete
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
17 years
[webbeans-dev] Formal TCK tests
by Shane Bryzak
For all new tests, could everyone please endeavour to assign the correct
assertion ID (found in tck-audit.xml) to the @SpecAssertion annotation.
This will greatly assist in the accuracy of the TCK coverage report - if
you can't find what you need in tck-audit, please let me know which
assertion your test is for and I'll make sure it is mapped accordingly.
17 years, 1 month