Question: you are required to use JUnit test framework (http://junit.org/) to write unit test cases for one of the following real world Java classes. Note that

you are required to use JUnit test framework (http://junit.org/) to write unit test cases for one of the following real world Java classes. Note that only the 12 specified methods need to be tested. The links for downloading the corresponding packages are given below the class name.

org.apache.commons.mail.Email:

https://foyzulhassan.github.io/files/commons-email-1.3.2-src.zip

Deliverables

You will work individually and write a JUnit test class with test methods to test one of the above classes. Please submit your test code, with all required dependencies (JUnit Framework, Mock Framework if required, the tested code, and other dependencies required to run the test code) to Canvas. The test code should be commented appropriately. Please name your package as [lastName]_[firstName].zip.

Evaluation Criterion

The assignment accounts for 100 points. 30 points will be given to all students who have submitted test code that compiles and have no runtime errors.

Then the assignment will be evaluated on the following aspects:

(1) the proper implementation of setup, teardown, and assertions (20 points)

(2) reasonable test coverage, over 70% coverage on all methods (50 points)

Required Software, Plugins and Tutorial

Java 11.09:

https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html

Eclipse IDE:

https://www.eclipse.org/downloads/packages/release/2020-09/r/eclipse-ide-enterprise-java-developers

In this Eclipse version code coverage plugin already installed to check code coverage percentage.

Email Server Mocking Frameworks

GreenMail:

https://greenmail-mail-test.github.io/greenmail/

Wiser:

https://github.com/voodoodyne/subethasmtp/blob/master/Wiser.md

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!