Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9114637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:14:40+00:00 2026-06-17T04:14:40+00:00

In a Maven Project I am using PowerMock-easymock to run jUnit test cases. but

  • 0

In a Maven Project I am using PowerMock-easymock to run jUnit test cases. but while doing “mvn clean install” , I am getting below output..


T E S T S

Running TestSuite
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.621 sec

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0


But I have many other test cases.
Here is a part of pom.xml

<dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.2</version>
        <scope>test</scope>
</dependency>
<dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymock</artifactId>
        <version>3.1</version>
        <scope>test</scope>
</dependency>
<dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-easymock-release-full</artifactId>
        <version>1.4.12</version>
        <type>pom</type>
</dependency>

If I remove, PowerMock dependency and do “mvn clean install” , all test cases are running fine. But I have to use PowerMock. How to solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:14:41+00:00Added an answer on June 17, 2026 at 4:14 am

    I guess that some of your test cases are not running, did you try this

    1. Use mvn surefire plugin, and include test cases in that.

    2. ensure dependancy of powermock-module-junit4.

      check out these link: code.google.com/p/powermock/wiki/EasyMock_maven
      http://code.google.com/p/powermock/wiki/GettingStarted

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having issues in building maven project using m2e. When I run update
I’m trying to run a legacy project using Maven with gwt-maven-plugin. I have the
I am trying to set up a project using Maven (m2eclipse), but I get
I'm developing a project using Maven. After a while i did update Project Configuration
I am putting together a new project using Maven and JUnit. I am using
I'm running a maven project using Jenkins. The project is using the checkstyle plugin
I have set up my maven project using the m2e plugin in eclipse indigo,
I have created a maven project in eclipse using the maven2eclipse plugin. I then
I'm trying to start a new struts 2 project using maven (struts2 blank archetype)
I am using maven-shade-plugin for a simple maven project, the plugin successfully includes all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.