Testing Hessian remoting-servlet.xml

We use Hessian to communicate between a rich client and server.

Due to moving and renaming from time to time, it happens that the entries in remoting-servlet.xml do not match the actual class names.

Therefore, I am looking for an easy way to check remote xml.

Is there an easy way to do this? Preferably without manually parsing the xml and trying to create an instance of all the classes mentioned there.

+4
source share
1 answer

Now we create the BeanFactory Spring in the test:

private final BeanFactory factory = new XmlBeanFactory(new FileSystemResource("remoting-servlet.xml")); 

And try creating each configured bean:

 assertNotNull(factory.getBean("beanName")); 

Works well

+1
source

Source: https://habr.com/ru/post/1336800/


All Articles