我的程式日誌

2016年1月6日 星期三

How to use JUnite Test

How to use JUnite Test



assertEquals("X should be equal", a, c);
assertTrue("Y should be true", d > a);
assertFalse("Z should be false", a == b);


if (b > d) {
  fail("XX should never happen");
}
張貼者: POM 於 凌晨3:19
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
標籤: android, JUnite
較新的文章 較舊的文章 首頁

網誌存檔

  • ►  2017 (13)
    • ►  8月 (1)
    • ►  6月 (1)
    • ►  4月 (1)
    • ►  3月 (5)
    • ►  2月 (1)
    • ►  1月 (4)
  • ▼  2016 (125)
    • ►  11月 (2)
    • ►  10月 (4)
    • ►  9月 (7)
    • ►  8月 (51)
    • ►  7月 (3)
    • ►  6月 (12)
    • ►  4月 (1)
    • ►  3月 (8)
    • ►  2月 (21)
    • ▼  1月 (16)
      • Android visual part-Make the app more beautiful
      • SharedPreferences
      • how and why SQLiteQueryBuilder
      • PreferenceFragment inAPI 10(can show the action bar)
      • Debugging Android with Stetho
      • Retrofit 2
      • onSaveInstanteState and onRestoreInstanceState
      • Responsive Design and Fragment usage
      • Optimizing Layouts
      • Formatting Strings with xl iff tags
      • ViewHolder Pattern
      • Cursor adapter
      • View Groups(Layout),height,weight,gravity,Padding ...
      • Android Sql and Content provider
      • cursor loader
      • How to use JUnite Test
  • ►  2015 (35)
    • ►  12月 (10)
    • ►  11月 (9)
    • ►  10月 (16)

關於我自己

POM
檢視我的完整簡介
輕柔雅緻主題. 技術提供:Blogger.