Assignment The attached source code needs to be created via IntelliJ IDEA and has to have JUnit 5 tests created for it. In addition to that, both the source code and the JUnit tests that...

1 answer below »


Assignment
















  • The attached source code

    needs to be created via IntelliJ IDEA and has to have JUnit 5 tests

    created for it.





  • In addition to that, both the

    source code and the JUnit tests that will be created need to be able to

    run via Maven.





  • Screenshots need to be

    provided for the steps you took to implement Maven.









This
means you must take screenshots of
ALL
the
steps you take to integrate Maven to your code within your IDE and add a brief
explanation of what you're doing in each step's respective screenshot.










  • Repeat the instructions

    mentioned above for the screenshots, but this time your code must be ran

    through Maven via the command prompt. Again, take screenshots of your

    whole process and briefly document it.





  • DON'T FORGET


    to add the

    screenshots of your codes successfully running via Maven in your IDE and

    Maven through your command prompt.
















JUnit tests Expectations










  • You must create test cases

    that will test all areas of the source code in all a necessary ways for

    successful deployment of the application after all tests are completed.





  • All test cases must be

    PROPERLY

    DOCUMENTED

    ; this

    means,


    CLEAR

    explanations

    of what each test case DOES and HOW it gets it done.





  • Documentation must be done

    within the source code itself

    NOT AS A SEPARATE FILE.

    Make sure the explanations

    are given respectively to each test case that you create.
















Expected Junit Documentation Format in IDE













/* Write your test code explanation here */














Code for
explanation above goes here.



















I'm using the following versions:






Maven
= Apache Maven 3.8.6






Java
= Java 17.0.4.1






IntelliJ
= IntelliJ IDEA 2022.2.2 (Ultimate Edition) Runtime version: 17.0.4+7-b469.53
amd64












***
Please ensure all is being done in indicated versions, since not doing so has
created problems in the past ***

Answered 3 days AfterOct 17, 2022

Answer To: Assignment The attached source code needs to be created via IntelliJ IDEA and has to have JUnit...

Manikandan answered on Oct 20 2022
48 Votes
Process for creating maven project in IntelliJ with given Source code
1) Open IntelliJ
2) Go to File -> New-> Project
3) In the opened window you need select appropriate options
a. Need to enter project name
b.
Project Location
c. Language as java
d. Build System as Maven
e. JDK Location
f. Advanced Setting -> Group Id & Artifact ID
4) Then click on the create button
5) Then the project will be created in IntelliJ Work space
6) Then the project will be displayed like below
7) Below picture shows the project structure
8) Below is Original Source code ToDoListAssignment.java
import java.util.ArrayList;
import java.util.Scanner;
public class ToDoListAssignment {
static class DailyToDoList {
ArrayList ToDoList = new ArrayList();
public void addEvent(String event) {
this.ToDoList.add(event);
}
public void removeEvent(int eventID) {
this.ToDoList.remove(eventID);
}
public void ListOfAllEvents() {
for (int i = 0; i < this.ToDoList.size(); i++) {
System.out.println((i + 1) + "- " + this.ToDoList.get(i));
}
}
}
public static void main(String[] args){
DailyToDoList ToDoList = new DailyToDoList();
int indicator = 0;
while (indicator == 0){
System.out.println("");
System.out.println("******* LIST OF THINGS TO DO *******");
System.out.println("");
System.out.println("(1) Add an event");
System.out.println("(2) Remove an event");
System.out.println("(3) List of all events");
System.out.println("(4) Exit list");
System.out.println("");
System.out.println("Select an option: ");
Scanner input = new Scanner(System.in);
int option = input.nextInt(); input.nextLine();
if(option == 1){
System.out.println("Enter event information: ");
String event = input.nextLine();
ToDoList.addEvent(event);
System.out.println("An...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here