Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リッチクライアントとサーバー間の通信にはHessianを使用しています。
移動や名前の変更により、remoting-servlet.xmlのエントリが実際のクラス名と一致しない場合があります。
そのため、リモーティングxmlをテストする簡単な方法を探しています。
それを行う簡単な方法はありますか?手動でxmlを解析し、そこに記載されているすべてのクラスをインスタンス化しようとせずに実行することをお勧めします。
ここで、テストでSpringBeanFactoryを作成します。
private final BeanFactory factory = new XmlBeanFactory(new FileSystemResource("remoting-servlet.xml"));
そして、構成された各Beanを作成してみてください。
assertNotNull(factory.getBean("beanName"));
うまく機能します