Ok, real quick thoughts on what we could use -- at least initially -- for TomEE 
unit tests.

For each of:

 - Servlet (lazy startup)
 - Servlet (load on startup)
 - Filter
 - Listener
 - JSF ManagedBean

We should test basic injection of:

 - @Resource
    - TransactionManager

    - <env-entry>
        - All Primitive wrappers
        - Enum
        - Class
        - String

    - DataSource

    - JMS
        - ConnectionFactory (JMS)
        - Topic
        - Queue

 - @EJB
    - @Local
    - @LocalBean

    - @Remote

 - JPA
    - @PersistenceContext
    - @PersistenceUnit

 - CDI
    - @Inject 

 - WS
    - @WebServiceRef

Then all of the above in the exact component class, then again in a parent 
class to make sure subclassing and injection works.

Should give us some basic coverage.

JMS and WS injection would be the lowest priority since they are not in the web 
profile.

-David

Reply via email to