How To Install easymock2.noarch on Amazon Linux 2

In this tutorial we learn how to install easymock2.noarch in Amazon Linux 2. easymock2.noarch is Easy mock objects

Introduction

In this tutorial we learn how to install easymock2.noarch on Amazon Linux 2.

What is easymock2.noarch

EasyMock provides Mock Objects for interfaces in JUnit tests by generating them on the fly using Java’s proxy mechanism. Due to EasyMock’s unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development.

We can use yum to install easymock2.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install easymock2.noarch.

Install easymock2.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install easymock2.noarch using yum by running the following command:

sudo yum -y install easymock2.noarch

How To Uninstall easymock2.noarch on Amazon Linux 2

To uninstall only the easymock2.noarch package we can use the following command:

sudo yum remove easymock2.noarch

easymock2.noarch Package Contents on Amazon Linux 2

/usr/share/doc/easymock2-2.5.2
/usr/share/doc/easymock2-2.5.2/LICENSE.txt
/usr/share/java/easymock2-2.4.jar
/usr/share/java/easymock2-2.5.2.jar
/usr/share/maven-fragments/easymock2
/usr/share/maven-poms/JPP-easymock2-2.4.pom
/usr/share/maven-poms/JPP-easymock2-2.5.2.pom

References

Summary

In this tutorial we learn how to install easymock2.noarch on Amazon Linux 2 using yum.