[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2007-01-03 Thread jantzen
Okay, the documentation is wrong. I finally got the embedded server to load my Entity beans, MDBs, and Stateless Session beans, but Service beans are a no go. Anybody know of a workaround? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997774#3997774 Reply

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2007-01-02 Thread jantzen
"gommo" wrote : | When my test targets are run the source is compiled in build\ and also most classes are also copied to build-tests (The reason I have done this is the embedded server didn't support all things like ServiceBeans etc..) so I dont copy them over | Are you sure Service beans

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-25 Thread jantzen
Thanks for the help Gommo. I've been trying to get unit tests working inside of my primary development directory tree, which has created problems with finding config files, building properly etc. I'll try a separate test hierarchy like you've got and see if I make it any farther this time.

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-20 Thread gommo
I'm running TestNG using eclipse BUT from an ant file. Not using the eclipse plugin. I wanted it to work outside of eclipse as I also use Netbeans. (Thats a side issue but I wish Netbeans and Eclipse joined or something, eclipse is fast, I love its autobuilding etc.., but its project settings SU

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-20 Thread jantzen
Hi Gommo and Tarantula, I'm glad you guys got something working with Embedded JBoss. I guess I'll take a another stab at that approach. How are you bundling and running the tests with your application? In other words, where does Embedded JBoss live compared to the real server, and how do you

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-19 Thread tarantula
I found a solution to my problem. It looks like the EJB3Configuration class in hibernate-all.jar in Seam 1.1 GA is outdated - I replaced this with the latest Hibernate 3.2.1 and Hibernate EntityManager 3.2.1 JARs and no more fatal messages. Next up is the Microcontainer version warning... View

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-19 Thread tarantula
This is done too. I changed the xmlns value to "urn:jboss:bean-deployer:2.0" in the following XML files: embedded-ejb/conf/embedded-jboss-beans.xml embedded-ejb/conf/jboss-jmx-beans.xml embedded-ejb/conf/security-beans.xml resources/META-INF/jboss-beans.xml Good to go! View the original post :

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-18 Thread tarantula
Hey, I've been exploring the embedded EJB3 container that ships with Seam 1.1 GA for the past few days (since it was released) and it looks promising. I managed to migrate a sizable domain model from pure Hibernate to the Java persistence API using EJB3 entities. My very simple TestNG test ca

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-18 Thread gommo
I've successfully started using the embedded EJB microcontainer to do unit testing (Using Test-NG). As far as I know (correct me if I'm wrong) the embedded microcontainer's kernel is what JBoss 5 is based on, so just because its in alpha doesnt mean its not maintained rather JBoss 5 is just in

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-15 Thread gcoleman
I agree - the state of EJB unit testing does seem to be a bit depressing. A lot of these projects are dormant. We're using MockEJB for some out of container testing of EJBs here, though we don't do anything too complex. It may be that it doesn't have the feature you need. A forum post indicated

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-13 Thread jantzen
Thanks for the suggestions. But, are these actually capable of testing EJB3s? MockEJB hasn't been updated in two years and I'm doesn't look like it supports dependency injection. JUnitEE is also two years out of date and doesn't work with either JUnit 3.8 or 4.1, and doesn't say what version

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-13 Thread gcoleman
There are a few frameworks for testing EJBs: MockEJB: http://www.mockejb.org/ Cactus: http://jakarta.apache.org/cactus/index.html JUnitEE: http://www.junitee.org/ and I'm sure there are more hanging around the web somewhere. Out of those three MockEJB is the only one that runs outside the app