I'm trying to write a new Junit test for JBossMQ (v3.2.3) and I'm having trouble running a single test from an IDE (I'm using IntelliJ Idea on Linux).
My test extends JBossTestCase and when I call super.getInitialContext () it returns, but the context returned is bad. When I try to use it I get NoInitialContext exception.
Clearly I need to specify some system properties to tell the test how to connect to the server. Is there an example I can look at that shows what these properties are? They are not obvious from the build.xml file.
You are missing jndi.properties from your classpath.
See the "one-test" target in build.xml for the complete configuration.