私のコードは機能しますが、以下の行の Junit モック テストでは失敗します。
ApplicationContext ctx = new ClassPathXmlApplicationContext("../MyFile.xml");
これを修正するにはどうすればよいですか?
@ContextConfiguration を追加するか、別の方法がありますか?
"ApplicationContext ctx = new ClassPathXmlApplicationContext("../MyFile.xml");" この行はテストクラスではなく通常のメソッドにあります