乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      JUnit常用斷言方法

       小豬窩969 2015-05-04

      JUnit斷言方法有很多,不過,可以很清楚地從其子面看出其功能。

      常用的方法如下:

      assertEquals(a, b)

      Asserts that two primitive values are equal.

      測試a是否等于b(a和b是原始類型數(shù)值(primitive value)或者必須為實現(xiàn)比較而具有equal方法)

      assertFalse(a)

      Asserts that a condition (a) is false.

      測試a是否為false(假),a是一個Boolean數(shù)值。

      assertTrue(a)

      Asserts that a condition is true.

      測試a是否為true(真),a是一個Boolean數(shù)值

      assertNotNull(a)

      Asserts that an object isn't null.

      測試a是否非空,a是一個對象或者null。

      assertNull(a)

      Asserts that an object is null.

      測試a是否為null,a是一個對象或者null。

      assertNotSame(a, b)

      Asserts that two objects do not refer to the same object.

      測試a和b是否沒有都引用同一個對象。

      assertSame(a, b)

      Asserts that two objects refer to the same object.

      測試a和b是否都引用同一個對象。

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多