How To Install easymock on Fedora 36

In this tutorial we learn how to install easymock in Fedora 36. easymock is Easy mock objects

Introduction

In this tutorial we learn how to install easymock on Fedora 36.

What is easymock

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 or dnf to install easymock on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install easymock.

Install easymock on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install easymock using dnf by running the following command:

sudo dnf -y install easymock

Install easymock on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install easymock using yum by running the following command:

sudo yum -y install easymock

How To Uninstall easymock on Fedora 36

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

sudo dnf remove easymock

easymock Package Contents on Fedora 36

/usr/share/java/easymock-test-java8.jar
/usr/share/java/easymock-test-junit5.jar
/usr/share/java/easymock-test-testng.jar
/usr/share/java/easymock.jar
/usr/share/java/easymock3-test-java8.jar
/usr/share/java/easymock3-test-junit5.jar
/usr/share/java/easymock3-test-testng.jar
/usr/share/java/easymock3.jar
/usr/share/licenses/easymock
/usr/share/licenses/easymock/LICENSE.txt
/usr/share/maven-metadata/easymock.xml
/usr/share/maven-poms/easymock-parent.pom
/usr/share/maven-poms/easymock-test-java8.pom
/usr/share/maven-poms/easymock-test-junit5.pom
/usr/share/maven-poms/easymock-test-testng.pom
/usr/share/maven-poms/easymock.pom
/usr/share/maven-poms/easymock3-parent.pom
/usr/share/maven-poms/easymock3-test-java8.pom
/usr/share/maven-poms/easymock3-test-junit5.pom
/usr/share/maven-poms/easymock3-test-testng.pom
/usr/share/maven-poms/easymock3.pom

References

Summary

In this tutorial we learn how to install easymock on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).