Search code examples
websphereintegration-testingjava-ee-6websphere-8jboss-arquillian

Integration testing framework for websphere 8.5


We are using websphere application server 8.5 for our enterprise applications.

I want to know is there any integration testing framework other than arquillian?

I tried running with arquillian with embedded and remote. Because embedded does not provide support for CDI we don't want to use it. And with remote we are not able to start our tests because of some security issue. Even if we try to solve that we cannot use @PersistenceContext or @Resource etc.

So I would like to know if there is any integration testing framework exclusively for websphere.

Thank you

P.S. I think I misunderstood @PersistenceContext and @Resource. Please correct me if I am wrong.

I can use @PersistenceContext or @Resource in my actual application but not in my arquillian classes. Am I right? Earlier I thought I cannot use these anywhere in my code.

Secondly, as a quick test, I tried disabling administration security on WAS and the test case ran successfully.


Solution

  • I want to know is there any integration testing framework other than arquillian?

    Currently there are not any good Java EE test alternatives to Arquillian that I know of. However, you can make a decent test framework using some very basic ant scripting and junit.
    (See this answer for testing in Java EE for an example implementation)

    I think I misunderstood @PersistenceContext and @Resource. Please correct me if I am wrong.

    I can use @PersistenceContext or @Resource in my actual application but not in my arquillian classes. Am I right? Earlier I thought I cannot use these anywhere in my code.

    If you're going to use @PersistenceContext or @Resource in a class, that class should be container managed (i.e. deployed in an application as part of an ear/war/ejb module)