<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Assertions() 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/getting-started.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/getting-started.html)(修改該鏈接為官網對應的鏈接) 譯文鏈接 : [http://www.apache.wiki/display/Elasticsearch](http://www.apache.wiki/display/Elasticsearch)(修改該鏈接為 **ApacheCN** 對應的譯文鏈接) 貢獻者 : @您的名字,[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina) ## 目錄 1 -?標題 2 As many elasticsearch tests are checking for a similar output, like the amount of hits or the first hit or special highlighting, a couple of predefined assertions have been created. Those have been put into the?`ElasticsearchAssertions`?class. There is also a specific geo assertions in?`ElasticsearchGeoAssertions`. | `assertHitCount()` | Checks hit count of a search or count request | | `assertAcked()` | Ensure the a request has been acknowledged by the master | | `assertSearchHits()` | Asserts a search response contains specific ids | | `assertMatchCount()` | Asserts a matching count from a percolation response | | `assertFirstHit()` | Asserts the first hit hits the specified matcher | | `assertSecondHit()` | Asserts the second hit hits the specified matcher | | `assertThirdHit()` | Asserts the third hits hits the specified matcher | | `assertSearchHit()` | Assert a certain element in a search response hits the specified matcher | | `assertNoFailures()` | Asserts that no shard failures have occurred in the response | | `assertFailures()` | Asserts that shard failures have happened during a search request | | `assertHighlight()` | Assert specific highlights matched | | `assertSuggestion()` | Assert for specific suggestions | | `assertSuggestionSize()` | Assert for specific suggestion count | | `assertThrows()` | Assert a specific exception has been thrown | Common matchers | `hasId()` | Matcher to check for a search hit id | | `hasType()` | Matcher to check for a search hit type | | `hasIndex()` | Matcher to check for a search hit index | | `hasScore()` | Matcher to check for a certain score of a hit | | `hasStatus()` | Matcher to check for a certain?`RestStatus`?of a response | Usually, you would combine assertions and matchers in your test like this ## 目錄 2 -?標題 2 正文2 ## 目錄 3 -?標題 2 正文3 ## 目錄 N?-?標題 2 正文4
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看