java - NullPointerException on NamespaceManager access -
what reasons namespacemanager.get()
throw nullpointerexception
.
can me identify possible reason(s) namespacemanager
null , get()
throw npe?
this junit test code:
@contextconfiguration(locations = { "classpath:service/client-config.xml" }) @runwith(springjunit4classrunner.class) public class mydaotest { private final localservicetesthelper helper = new localservicetesthelper(new localdatastoreservicetestconfig() .setdefaulthighrepjobpolicyunappliedjobpercentage(0)); @before public void setup() { helper.setup(); } @after public void teardown() { helper.teardown(); } @test public void test() { } }
basically, client-config.xml
configured <mvc:annotation-driven />
Comments
Post a Comment