Validate the arguments passed to a methodTIL
The Mockito framework has the ArgumentCaptor class that can be use to validate the arguments passed to a mocked method.
The Mockito framework has the ArgumentCaptor class that can be use to validate the arguments passed to a mocked method.
Install the jq package:
macOS:
1brew install jq
Linux:
Julia Evans suggests keeping a document with all the work we’ve done —she calls it a Brag Document— to share with our managers, making their job easier during performance evaluations.
This StackOverflow answer explains the different between List.of and Arrays.asList.
1String value = "a Á á É é Í 8 . - ? í Ó ó Ú ú ü / ! ¿";
2
3Stream.of(value.split("")).filter(s -> s.matches("\\p{L}"))
4 .forEach(System.out::printf);
5
6//ÁaáÉeéÍiíÓóoOÚúü
The regular expression uses a Unicode character class escape with a General category property for filter only the letters.