contextのclose()
テストで利用するcontextは今までorg.springframework.context.ApplicationContextを使っていた。
が、org.springframework.context.ConfigurableApplicationContextというものもあるらしい。
こちらだとcontext.close()を使うことができる。
テストで利用するcontextは今までorg.springframework.context.ApplicationContextを使っていた。
が、org.springframework.context.ConfigurableApplicationContextというものもあるらしい。
こちらだとcontext.close()を使うことができる。