doing some refactoring to use the Comparator.comparing API
adding a few more tests
@clintval I might have gone a bit overboard on refactoring. I really hate how normal comparators are written and like to rewrite them as the newer Comparator.comparing() chains so I did that.
It's great that you added tests, I ended up condensing them into a single test case with a dataprovider and a few additional use cases. I never would have bothered having any if you hadn't mad them in the first place though!
@clintval I might have gone a bit overboard on refactoring. I really hate how normal comparators are written and like to rewrite them as the newer Comparator.comparing() chains so I did that.
It's great that you added tests, I ended up condensing them into a single test case with a dataprovider and a few additional use cases. I never would have bothered having any if you hadn't mad them in the first place though!