差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
java:spring:test:springinjunithellowworld [2019/01/30 23:48]
tony
java:spring:test:springinjunithellowworld [2023/06/25 09:48] (目前版本)
行 1: 行 1:
 +{{tag>​java junit spring spring-test}}
 ====== Spring In JUnit HelloWorld! ====== ====== Spring In JUnit HelloWorld! ======
 ===== Introduction ===== ===== Introduction =====
 在寫這篇文章前,我只使用Spring Test去測試過我們的REST API。某一日,因為看到同事誤用的@ActiveProfile,讓我發現了其它不錯的Test Annotation。本篇文章分享給大家一些基本寫法。 在寫這篇文章前,我只使用Spring Test去測試過我們的REST API。某一日,因為看到同事誤用的@ActiveProfile,讓我發現了其它不錯的Test Annotation。本篇文章分享給大家一些基本寫法。
 +\\
 \\ \\
 Note. 我使用的spring-test版本是4.3.6。 Note. 我使用的spring-test版本是4.3.6。
行 90: 行 92:
   * [[http://​blog.jamesdbloom.com/​UsingPropertySourceAndEnvironment.html|UsingPropertySourceAndEnvironment]]   * [[http://​blog.jamesdbloom.com/​UsingPropertySourceAndEnvironment.html|UsingPropertySourceAndEnvironment]]
   * [[https://​www.solidsyntax.be/​2013/​10/​22/​clean-the-spring-context-between-tests/​|Clean Spring Context]]   * [[https://​www.solidsyntax.be/​2013/​10/​22/​clean-the-spring-context-between-tests/​|Clean Spring Context]]
 +=====    ===== 
 +---- 
 +\\ 
 +~~DISQUS~~