How To Install easymock.noarch on Amazon Linux 2

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

Introduction

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

What is easymock.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 easymock.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install easymock.noarch.

Install easymock.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 easymock.noarch using yum by running the following command:

sudo yum -y install easymock.noarch

How To Uninstall easymock.noarch on Amazon Linux 2

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

sudo yum remove easymock.noarch

easymock.noarch Package Contents on Amazon Linux 2

/usr/share/doc/easymock-1.2
/usr/share/doc/easymock-1.2/Documentation.html
/usr/share/doc/easymock-1.2/LICENSE
/usr/share/doc/easymock-1.2/License.html
/usr/share/java/easymock.jar
/usr/share/maven-fragments/easymock
/usr/share/maven-poms/JPP-easymock.pom

References

Summary

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