---
title: "Discussion on \"Using Collections to Write Better JUnit Tests\" | Hashnode"
description: "Discussion on \"Using Collections to Write Better JUnit Tests\". In this post, I am going to show you how to use the Java Collections API to help you both randomize and sort data so that it is more easily testable. Testable code leads to code that is easier to maintain. This will improve the longevity of any proje..."
url: "https://hashnode.com/posts/using-collections-to-write-better-junit-tests/5f52c7093c1c7b7c6901739e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Collections to Write Better JUnit Tests](https://blog.phillipninan.com/using-collections-to-write-better-junit-tests?utm_source=hashnode&utm_medium=feed)

In this post, I am going to show you how to use the Java Collections API to help you both randomize and sort data so that it is more easily testable. Testable code leads to code that is easier to maintain. This will improve the longevity of any proje...

Sep 4, 2020 · 4 min read · blog.phillipninan.com  
Updated Feb 22, 2021  
Read the article

-   [#junit](https://hashnode.com/tag/junit)
-   [#developers](https://hashnode.com/tag/developers)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#java](https://hashnode.com/tag/java)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Phillip Ninan](https://hashnode.com/@phillip_ninan)

@phillip\_ninan · Long Island, NY

  
[View profile](https://hashnode.com/@phillip_ninan)

Senior Software Engineer

I'm a software engineer interested in Cloud technologies and web applications.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
