How To Install mockito-inline on Fedora 36

In this tutorial we learn how to install mockito-inline in Fedora 36. mockito-inline is Mockito preconfigured inline mock maker

Introduction

In this tutorial we learn how to install mockito-inline on Fedora 36.

What is mockito-inline

Mockito preconfigured inline mock maker (intermediate and to be superseded by automatic usage in a future version).

We can use yum or dnf to install mockito-inline on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mockito-inline.

Install mockito-inline 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 mockito-inline using dnf by running the following command:

sudo dnf -y install mockito-inline

Install mockito-inline 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 mockito-inline using yum by running the following command:

sudo yum -y install mockito-inline

How To Uninstall mockito-inline on Fedora 36

To uninstall only the mockito-inline package we can use the following command:

sudo dnf remove mockito-inline

mockito-inline Package Contents on Fedora 36

/usr/share/java/mockito
/usr/share/java/mockito/mockito-inline.jar
/usr/share/maven-metadata/mockito-inline.xml
/usr/share/maven-poms/mockito
/usr/share/maven-poms/mockito/mockito-inline.pom

References

Summary

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