1
トランザクションのロールバックに以下のアノテーションを使用している多くのDB統合テストがあります。Spring INFOが標準エラーにログ記録するのはなぜですか?
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:ApplicationContext-DAOs.xml"})
@Transactional
テストは合格しますが、実行すると、INFOレベルで標準エラーにログする必要があります。それは次のようなものを記録します:
19/11/2010 16:49:11 org.springframework.test.context.TestContextManager
retrieveTestExecutionListeners
INFO: @TestExecutionListeners is not present for class [class my.SomeDAOTest]:
using defaults.
etc for many, many lines ...
どこをオフにしますか?
私のテストではlog4jプロパティはありません。残念ですが、Springの愚かさを回避するためにこの設定をする必要があります。 – Synesso