久久久久久久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模板網!

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

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  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>

                          • 主站蜘蛛池模板: 91av视频在线播放 | 中文字幕亚洲欧美日韩在线不卡 | 精品无码久久久久久国产 | va精品| 国产日韩一区二区 | 男人天堂久久久 | 亚洲成人高清 | 91久久久久 | 二区视频 | 日本免费小视频 | 福利视频大全 | 中文字幕第二十页 | 特黄毛片 | 中文字幕在线一区二区三区 | 亚洲精品久久久久久国产精华液 | 国产精品久久久久久久久久久久久久 | 国产精品网页 | 91精品国产综合久久久久蜜臀 | 日韩电影中文字幕在线观看 | 国产精品久久久久久久午夜 | 欧美自拍视频 | 国产婷婷在线视频 | 九九伊人sl水蜜桃色推荐 | 欧美男人天堂 | 精品视频一区二区在线观看 | www.亚洲视频.com | 国产高清在线 | 一本一道久久a久久精品蜜桃 | 午夜免费看视频 | 午夜影视在线观看 | 天天影视亚洲综合网 | 久久久精品综合 | 高清欧美性猛交xxxx黑人猛交 | 亚洲欧美一区二区三区国产精品 | 日韩黄色av | 国产激情在线观看 | a免费视频| 久草欧美视频 | 国产精品v | 神马福利| www.日日干|