Oct 19, 2018

How to Implement Linked List in Java with JUnit Test

Unit testing is the best development practice and the single most effective way to improve code quality; Yet, many Java developers find difficult to write Unit test, even for simple data structures like linked list, stack and queue. Nothing is better than to take a small step, after all a 100 mile journey starts with 1 step, I am sharing a simple JUnit example to test singly linked list. My linked list only contains append() method, and now its up to you to implement other methods like find(), delete() and write unit tests for that. This will help you to get familiar with both JUnit and data structure.

QuickBooks Self-Employed

Bigger tax refunds. Better organization. Manage your deductions with QuickBooks Self-Employed .