Tags » Mockito

Hiring :: Adobe CQ Developer/Lead/Architects in Parsippany, NJ / Atlanta, GA / Minneapolis, MN / El Segundo, CA / Mooresville, NC / Boulder, CO

Must Have Skills:

  • 6+ years over all experience
  • 3+ years Strong Web Content Management experience with Adobe AEM / CQ5
  • OSGi bundle development experience
  • Familiarity with Agile development including daily scrum and weekly iteration reviews and planning…
  • 104 more words
Jobs North America

Mocking Final Classes with Mockito

I have used PowerMock with Mockito for mocking final Class.

Following are Maven dependencies for PowerMock and Mockito.
Eg. pom.xml

<dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <version>1.5.5</version>
 	 <scope>test</scope>
   </dependency>
   <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito</artifactId>
      <version>1.5.5</version>
     
      <scope>test</scope>
  </dependency>

… 140 more words