unable to run unit test in IDEA

Our tests are run by com.demandtec.platform.test.TestMgr from commandline.
But IDEA tells me:
junit.framework.AssertionFailedError: No tests found in com.demandtec.platform.test.TestMgr
at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(IdeaJUnitAgent.java:58)
at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23)

If I set test class to com.demandtec.admin.notify.ExpirationNotifyTest, I get:
Failed to initialize the local context
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)

log4j:WARN No appenders could be found for logger (com.demandtec.sys.cfg.ConfigService).
log4j:WARN Please initialize the log4j system properly.

junit.framework.AssertionFailedError: com.demandtec.sys.DTException:code: 0; reason: TestContext is null, make sure this is an actual DTTest case defined in the XML.

Please sign in to leave a comment.