1
私はSpringブート、TestNGとPowerMockを使用しています。SpringBoot TestNgとPowerMock
私はAbstractTestNGSpringContextTests
を拡張し、電源モックの一部としてObjectFactory
を作成しました。 autowiredになっているBeanはすべてnull
に設定されています。また、以下の例外を取得します。
Caused by: java.lang.IllegalArgumentException: class org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer is not assignable to interface org.springframework.context.ApplicationContextInitializer
ローカルでこれを再現できるようにコードを投稿できますか? – javaPlease42