java.lang.UnsupportedOperationException at java.base/java.util.InmutableCollections.uoe

Problem: Junit returns next error:

java.lang.UnsupportedOperationException at java.base/java.util.InmutableCollections.uoe

Solution: Instead of List.of() or Array.asList() or… you have to use new ArrayList(Arrays.asList(…))

For more interesting tutorials & guides just check them HERE.

Leave a Reply

Your email address will not be published. Required fields are marked *