久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='QGDtU'></tfoot>

    <small id='QGDtU'></small><noframes id='QGDtU'>

    <i id='QGDtU'><tr id='QGDtU'><dt id='QGDtU'><q id='QGDtU'><span id='QGDtU'><b id='QGDtU'><form id='QGDtU'><ins id='QGDtU'></ins><ul id='QGDtU'></ul><sub id='QGDtU'></sub></form><legend id='QGDtU'></legend><bdo id='QGDtU'><pre id='QGDtU'><center id='QGDtU'></center></pre></bdo></b><th id='QGDtU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QGDtU'><tfoot id='QGDtU'></tfoot><dl id='QGDtU'><fieldset id='QGDtU'></fieldset></dl></div>
    <legend id='QGDtU'><style id='QGDtU'><dir id='QGDtU'><q id='QGDtU'></q></dir></style></legend>
      <bdo id='QGDtU'></bdo><ul id='QGDtU'></ul>
      1. 我應該使用哪些 Maven 工件來導入 PowerMock?

        Which Maven artifacts should I use to import PowerMock?(我應該使用哪些 Maven 工件來導入 PowerMock?)

        • <legend id='RKlti'><style id='RKlti'><dir id='RKlti'><q id='RKlti'></q></dir></style></legend>
          1. <i id='RKlti'><tr id='RKlti'><dt id='RKlti'><q id='RKlti'><span id='RKlti'><b id='RKlti'><form id='RKlti'><ins id='RKlti'></ins><ul id='RKlti'></ul><sub id='RKlti'></sub></form><legend id='RKlti'></legend><bdo id='RKlti'><pre id='RKlti'><center id='RKlti'></center></pre></bdo></b><th id='RKlti'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RKlti'><tfoot id='RKlti'></tfoot><dl id='RKlti'><fieldset id='RKlti'></fieldset></dl></div>

            <tfoot id='RKlti'></tfoot>

            <small id='RKlti'></small><noframes id='RKlti'>

                <bdo id='RKlti'></bdo><ul id='RKlti'></ul>
                  <tbody id='RKlti'></tbody>

                1. 本文介紹了我應該使用哪些 Maven 工件來導入 PowerMock?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我需要將哪些 jar 添加到我的 pom.xml 以使 PowerMock 與 Mockito 一起使用?我有以下依賴項:

                  What jars do I need to add to my pom.xml to get PowerMock working with Mockito? I have the following dependencies:

                  <dependency>
                      <groupId>org.mockito</groupId>
                      <artifactId>mockito-all</artifactId>
                      <version>1.9.0</version>
                      <scope>test</scope>
                  </dependency>
                  <dependency>
                      <groupId>org.powermock</groupId>
                      <artifactId>powermock-api-mockito</artifactId>
                      <version>1.4.11</version>
                      <scope>test</scope>
                  </dependency>
                  <dependency>
                      <groupId>org.powermock</groupId>
                      <artifactId>powermock-api-support</artifactId>
                      <version>1.4.11</version>
                      <scope>test</scope>
                   </dependency>
                  

                  但是當我在類級別添加 @PrepareForTest 注釋時,Eclipse 找不到它,但它可以找到 PowerMockito.我錯過了什么罐子?

                  but when I add the @PrepareForTest annotation at class level, Eclipse cannot find it, but it can find PowerMockito. What jar am I missing?

                  推薦答案

                  根據Mockito_Maven PowerMock wiki 上的頁面,使用這個:

                  According to the Mockito_Maven page on the PowerMock wiki, use this:

                  <properties>
                      <powermock.version>1.6.6</powermock.version>
                  </properties>
                  <dependencies>
                     <dependency>
                        <groupId>org.powermock</groupId>
                        <artifactId>powermock-module-junit4</artifactId>
                        <version>${powermock.version}</version>
                        <scope>test</scope>
                     </dependency>
                     <dependency>
                        <groupId>org.powermock</groupId>
                        <artifactId>powermock-api-mockito</artifactId>
                        <version>${powermock.version}</version>
                        <scope>test</scope>
                     </dependency>
                  </dependencies>
                  

                  powermock-api-support 似乎是 "僅實用程序類",您仍然需要 powermock-module-junit4 中提供的核心庫.

                  powermock-api-support seems to be "utility classes only", where you still need the core libraries provided in powermock-module-junit4.

                  這篇關于我應該使用哪些 Maven 工件來導入 PowerMock?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                  <i id='WEONs'><tr id='WEONs'><dt id='WEONs'><q id='WEONs'><span id='WEONs'><b id='WEONs'><form id='WEONs'><ins id='WEONs'></ins><ul id='WEONs'></ul><sub id='WEONs'></sub></form><legend id='WEONs'></legend><bdo id='WEONs'><pre id='WEONs'><center id='WEONs'></center></pre></bdo></b><th id='WEONs'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WEONs'><tfoot id='WEONs'></tfoot><dl id='WEONs'><fieldset id='WEONs'></fieldset></dl></div>

                2. <small id='WEONs'></small><noframes id='WEONs'>

                3. <legend id='WEONs'><style id='WEONs'><dir id='WEONs'><q id='WEONs'></q></dir></style></legend>

                        <tfoot id='WEONs'></tfoot>
                          <bdo id='WEONs'></bdo><ul id='WEONs'></ul>
                            <tbody id='WEONs'></tbody>

                          • 主站蜘蛛池模板: 中文字幕乱码一区二区三区 | 免费午夜视频在线观看 | 二区av | 亚洲视频1区 | 2019天天干夜夜操 | 欧美伊人久久久久久久久影院 | 这里只有精品99re | a黄在线观看 | 国产综合网站 | 成人国产免费视频 | 91精品国产乱码久久久久久久久 | 欧美精品一区二区三区蜜桃视频 | 国产精品久久久久久av公交车 | 久久久久亚洲精品国产 | 国产永久免费 | 日韩中文字幕第一页 | 夜夜操操操 | 激情久久久久 | 亚洲综合在线视频 | 亚洲精品自在在线观看 | 精品日韩在线观看 | 欧美激情一区二区三级高清视频 | 欧美日韩国产一区二区 | 色中文在线| www.4hu影院| 久久久一区二区三区四区 | 日韩中文字幕在线视频 | 亚洲网站在线观看 | 欧美中文字幕 | 久久精品中文字幕 | 久久久九九 | 亚洲精品国产电影 | 国产成人精品一区二区三 | 亚洲视频在线播放 | 国产精品国产精品 | 久久午夜精品福利一区二区 | 国产精品99久久久久久动医院 | 欧美日韩在线观看一区 | 日本久久网| 亚洲顶级毛片 | 91影视|