2015-11-01 19 views
5

Spring(起動)では、@IntegrationTest@WebIntegrationTestの違いは何ですか?@IntegrationTestと@WebIntegrationTestの注釈

ドキュメントによれば、両方のアノテーションは、通常のポートでリッスンする完全にロードされたアプリケーションサーバーを提供します。

+2

まあ、私はドキュメントがクリアされていると思う: 'IntegrationTest' @:*あなたのテストでも代わりWebIntegrationTestの使用を検討して@WebAppConfiguration使用している場合は*、' @ WebIntegrationTest':*このアノテーションは、@IntegrationTestと@ WebAppConfiguration *の代替として使用できます。これから、@ @ IntegrationTestと@ WebAppConfigurationは、@ WebIntegrationTestと同じであると仮定します。 –

+0

ありがとう@BohuslavBurghardt、私はそれを逃した必要があります。 –

答えて

8

@WebIntegrationTest = @IntegrationTest + @WebAppConfiguration

関連する問題