# Eclipse AspectJ vs Mockito - Which one fits your team best?

Pricing

**Eclipse AspectJ**
No pricing available

**Mockito**
No pricing available

**Pros & Cons**
from reviews

**Eclipse AspectJ**

Aspects Without Code Changes (4)

Wide Feature Coverage (4)

Difficult Runtime Debugging (5)

Steep Learning Curve (3)

**Mockito**

Easy Day-to-Day Use (5)

Annotation-Based Mock Setup (3)

No Static Method Mocking (2)

**Ratings**
from reviews

Meets Requirements

**Eclipse AspectJ**

**8.8** /10

Based on 21 responses

**Mockito**

**8.3** /10

Based on 14 responses

Ease of Use

**Eclipse AspectJ**

**8.4** /10

Based on 21 responses

**Mockito**

**7.9** /10

Based on 14 responses

Ease of Setup

**Eclipse AspectJ** Not enough data

**Mockito**

**9.0** /10

Based on 5 responses

Ease of Admin

**Eclipse AspectJ** Not enough data

**Mockito**

**9.0** /10

Based on 5 responses

Quality of Support

**Eclipse AspectJ**

**8.1** /10

Based on 16 responses

**Mockito**

**7.7** /10

Based on 13 responses

Has the product been a good partner in doing business?

**Eclipse AspectJ** Not enough data

**Mockito**

**8.0** /10

Based on 5 responses

Product Direction (% positive)

**Eclipse AspectJ**

**8.8** /10

Based on 20 responses

**Mockito**

**7.3** /10

Based on 13 responses

##### Latest reviews from Eclipse AspectJ & Mockito

###### Eclipse AspectJ

 ![Shubham A.](https://images.g2crowd.com/uploads/avatar/image/361119/thumb_square_d18e541625956744ddae8ce93f4c27eb.jpeg "Shubham A.")
SA

Reviewed by [Shubham A.](https://www.g2.com/users/d66ff868-f5e5-4f63-97b8-ba03c4698fb4)

Engineering Leadership | Small-Business (50 or fewer emp.)

* * *

Rating: 4.5 out of 5

4.5/5

"Eclipse AspectJ review"

What I like is the fact that a programming model is built into the tool itself. Generally, it's not easy to write aspect-oriented code, but with Eclipse AspectJ, it becomes part...

[
Read full review
](https://www.g2.com/products/eclipse-aspectj/reviews/eclipse-aspectj-review-4575260)almost 6 years ago

 ![himanshu p.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "himanshu p.")
HP

Reviewed by [himanshu p.](https://www.g2.com/users/56d9e397-7152-4bd7-bc98-fe0eb00e96b0)

GET | Mid-Market (51-1000 emp.)

* * *

Rating: 4.0 out of 5

4/5

"Eclipse AspectJ: The Best Code editor"

Eclipse AspectJ is easy to use and provides the best tools for programmers.

[
Read full review
](https://www.g2.com/products/eclipse-aspectj/reviews/eclipse-aspectj-review-8275462)over 3 years ago

 ![Rahul G.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "Rahul G.")
RG

Reviewed by [Rahul G.](https://www.g2.com/users/0b5ed3d0-a58e-4071-9e09-69a0008b435c)

Associate Consultant | Mid-Market (51-1000 emp.)

* * *

Rating: 4.0 out of 5

4/5

"Eclipse AspectJ is best Aspect oriented Programming tool"

it is easy to use here I found all functionality of Aspect programming. i can say that I am happy with it.

[
Read full review
](https://www.g2.com/products/eclipse-aspectj/reviews/eclipse-aspectj-review-8275926)over 3 years ago

 ![Prashant S.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "Prashant S.")
PS

Reviewed by [Prashant S.](https://www.g2.com/users/7672baee-fc19-4c9b-ba80-36ffadc289df)

Frontend Developer | Mid-Market (51-1000 emp.)

* * *

Rating: 5.0 out of 5

5/5

"Best AOP platform for Beginners"

Different inter-type declarations in AspectJ enable programmers to change the classes and their members, as well as the relationships between them, in a program's static structure.

[
Read full review
](https://www.g2.com/products/eclipse-aspectj/reviews/eclipse-aspectj-review-8264030)over 3 years ago

 ![Kushagra R.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "Kushagra R.")
KR

Reviewed by [Kushagra R.](https://www.g2.com/users/813eb05a-850a-42e4-8462-20465841c7c2)

Software Engineer | Enterprise (\> 1000 emp.)

* * *

Rating: 4.5 out of 5

4.5/5

"Aspect oriented framework for Java best at scalablity"

We used it extensively in development and testing of our project. This is good for doing aspect oriented Java projects. Our project was using Aspect logics like cross cutting ab...

[
Read full review
](https://www.g2.com/products/eclipse-aspectj/reviews/eclipse-aspectj-review-8258232)over 3 years ago

###### Mockito

Reviewed by Verified User

Enterprise (\> 1000 emp.)

* * *

Rating: 4.5 out of 5

4.5/5

"Mockito - One of the best mocking framework for unit testing"

I like the most that it has huge stack overflow community to help you out. we can verify any interactions and stub our method calls. Using mockito in your existing project is th...

[
Read full review
](https://www.g2.com/products/mockito/reviews/mockito-review-4461914)about 6 years ago

 ![Prathamesh S.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "Prathamesh S.")
PS

Reviewed by [Prathamesh S.](https://www.g2.com/users/e755b308-9fda-4f98-9b96-54ac7d1633aa)

Software Engineer | Mid-Market (51-1000 emp.)

* * *

Rating: 4.5 out of 5

4.5/5

"Mocking framework used to write clean, simple and effective test cases."

One of the best frameworks out there to create Mock objects to enable testing. Decouples the testing logic from the implementation, making it easier to write clean test cases. A...

[
Read full review
](https://www.g2.com/products/mockito/reviews/mockito-review-4394524)about 6 years ago

 ![Olga K.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "Olga K.")
OK

Reviewed by [Olga K.](https://www.g2.com/users/8713c5a1-7fd9-459d-9f9a-0f8eac881cd1)

Full Stack Software Engineer | Mid-Market (51-1000 emp.)

* * *

Rating: 4.5 out of 5

4.5/5

"Perfect tool for testing framework"

It's possible to test a lot of conditions and it's easy to read. Just need to know what's happening inside. Once you learn it, it's clear.

[
Read full review
](https://www.g2.com/products/mockito/reviews/mockito-review-4608521)almost 6 years ago

 ![Apurva R.](/assets/transparent-ad5be28fbcd25b7b08d2cebe1d957125437fb5407d75ee717965ad22c8808791.gif "Apurva R.")
AR

Reviewed by [Apurva R.](https://www.g2.com/users/460aa0e6-d129-4162-9d86-db8b34142e54)

Associate Consultant | Enterprise (\> 1000 emp.)

* * *

Rating: 5.0 out of 5

5/5

"Unit Testing made easy by Mockito"

Mockito offers best platform for easy usage. I can easily mock an object if I need to test some methods of a class and not the whole. It ease to use made my coding life easy.

[
Read full review
](https://www.g2.com/products/mockito/reviews/mockito-review-4564280)almost 6 years ago

Reviewed by Verified User

Mid-Market (51-1000 emp.)

* * *

Rating: 5.0 out of 5

5/5

"I have been using Mockito for last 8+ years in JEE development. Mockito is in all Junit test."

Mocking underlying database or service,

[
Read full review
](https://www.g2.com/products/mockito/reviews/mockito-review-4543053)almost 6 years ago

User Insights

**Reviewers' Company Size**

Small-Business(50 or fewer emp.)
34.8%

Mid-Market(51-1000 emp.)
34.8%

Enterprise(\> 1000 emp.)
30.4%

Small-Business(50 or fewer emp.)
34.8%

Mid-Market(51-1000 emp.)
34.8%

Enterprise(\> 1000 emp.)
30.4%

Small-Business(50 or fewer emp.)
27.8%

Mid-Market(51-1000 emp.)
38.9%

Enterprise(\> 1000 emp.)
33.3%

Small-Business(50 or fewer emp.)
27.8%

Mid-Market(51-1000 emp.)
38.9%

Enterprise(\> 1000 emp.)
33.3%

**Reviewers' Industry**

[![Eclipse AspectJ](https://images.g2crowd.com/uploads/product/image/thumb_square/thumb_square_320b82979daacdc4cd4fab507d50195f/eclipse-aspectj.jpeg "Eclipse AspectJ")](https://www.g2.com/products/eclipse-aspectj/reviews)
Eclipse AspectJ

Information Technology and Services
13.0%

Computer Software
13.0%

Computer & Network Security
13.0%

Banking
8.7%

Telecommunications
4.3%

Other
47.8%

[![Mockito](https://images.g2crowd.com/uploads/product/image/thumb_square/thumb_square_68aca30a16b268e2d022e89df6db7656/mockito.png "Mockito")](https://www.g2.com/products/mockito/reviews)
Mockito

Information Technology and Services
22.2%

Computer Software
22.2%

Financial Services
11.1%

Military
5.6%

Marketing and Advertising
5.6%

Other
33.3%

Alternatives

**Eclipse AspectJ Alternatives**

 ![spring.io](https://images.g2crowd.com/uploads/product/hd_favicon/13b10fbf78fe0ef9bab8268eb1f3d7aa/spring-io.svg "spring.io")

[
spring.io
](/products/spring-io/reviews)

 ![JHipster](https://images.g2crowd.com/uploads/product/image/thumb_square/thumb_square_95c64c1be649c4ad42eba5485d80e94a/jhipster.png "JHipster")

[
JHipster
](/products/jhipster/reviews)

 ![Grails](https://images.g2crowd.com/uploads/product/image/thumb_square/thumb_square_36f1bae8310bb7a2f8417ff867932e4a/grails.png "Grails")

[
Grails
](/products/grails/reviews)

 ![Spark](https://images.g2crowd.com/uploads/product/hd_favicon/1487566689/apache-spark.png "Spark")

[
Spark
](/products/apache-spark/reviews)

**Mockito Alternatives**

 ![spring.io](https://images.g2crowd.com/uploads/product/hd_favicon/13b10fbf78fe0ef9bab8268eb1f3d7aa/spring-io.svg "spring.io")

[
spring.io
](/products/spring-io/reviews)

 ![JHipster](https://images.g2crowd.com/uploads/product/image/thumb_square/thumb_square_95c64c1be649c4ad42eba5485d80e94a/jhipster.png "JHipster")

[
JHipster
](/products/jhipster/reviews)

 ![Grails](https://images.g2crowd.com/uploads/product/image/thumb_square/thumb_square_36f1bae8310bb7a2f8417ff867932e4a/grails.png "Grails")

[
Grails
](/products/grails/reviews)

 ![Spark](https://images.g2crowd.com/uploads/product/hd_favicon/1487566689/apache-spark.png "Spark")

[
Spark
](/products/apache-spark/reviews)

## Eclipse AspectJ vs Mockito

- Reviewers felt that Eclipse AspectJ meets the needs of their business better than Mockito.
- When comparing quality of ongoing product support, reviewers felt that Eclipse AspectJ is the preferred option.
- For feature updates and roadmaps, our reviewers preferred the direction of Eclipse AspectJ over Mockito.