Over a million developers have joined DZone.

Testing in JEE 6? Same Old Story: Not There

· Java Zone

Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems, brought to you in partnership with AppDynamics.

OMG. Maybe I went from sippy cup to gulping the koolaid on JEE 6 a bit too quickly. Went to make a simple test today of my project, you know, so I could write more code that, um, worked, and found out that Weld doesn‘t really provide testing yet of the bean container. I wish I could say I was lmao, but it‘s really so pathetic it‘s sad.

Look at these surreal discussions:

Someone who started to do a runner in JUnit and bailed
On what is a unit?..

‘Hey Jim, did you bring the tests?.... ask Pete.. huh, ok… crap, I know we talked about tests….‘

Tried to make a test following the model of the last item on that thread but it didn‘t work: said there was no bean.

Seriously, decade and a half and we are still not able to do a helloworld with beans that has a test.

I have a radical proposal for a revision to the Agile Manifesto: when assembling a stack, if any part of it is not easily covered by testing, provided as part of that stack, MOVE ON!


Update : Ok, so I went and looked up the error. I don't see how Weld-SE testing works. It just doesn't find the beans. One thread said 'you need a beans.xml in src/test/resources/META-INF' (didn't work). Another said use Arquillian. I went and looked at that, but even if you can get that going now with Weld, their page shows (in the support matrix) that there is no support for persistence yet. Awesome. Ok, well, then I can use this on all my projects that don‘t need to save anything..!

 

From http://www.jroller.com/robwilliams/entry/testing_in_jee_6_same

The Java Zone is brought to you in partnership with AppDynamics. AppDynamics helps you gain the fundamentals behind application performance, and implement best practices so you can proactively analyze and act on performance problems as they arise, and more specifically with your Java applications. Start a Free Trial.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}