Skip to content

LinkedList Package and Unit Tests#2

Open
AlAskalany wants to merge 9 commits intosoftware-dev-academy:masterfrom
AlAskalany:develop
Open

LinkedList Package and Unit Tests#2
AlAskalany wants to merge 9 commits intosoftware-dev-academy:masterfrom
AlAskalany:develop

Conversation

@AlAskalany
Copy link

  • Moved Node class outside of the LinkedList class
  • Moved both Node and LinkedList classes to a new packed "excercises.linkedlist"
  • Added add and get methods with a Node object parameter to the LinkedList class
  • Added JUnit 5 tests for both the Node and the LinkedList classes

Created a .gitignore file using the .gitignore plugin in IntelliJ IDEA,
ignoring most common IDE and OS related files.
Moved Node class outside the LinkedList.java file to a new Node.java
file, and moved both files to a new package called "linkedlist".
Added an add method to the LinkedList class allowing adding a Node class
instance to it, besides the existing add by value one which is now named
addValue(int i).
Added a get method to the LinkedList class allowing getting a Node class
instance from it, besides the existing get by value one which is now named
getValue(int i).
Added getters and setters for fields in Node.java and changed usage in
the LinkedList class to match these changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant