{"id":20164954,"url":"https://github.com/jonarzz/stack-overflow","last_synced_at":"2026-06-08T00:32:04.913Z","repository":{"id":90434139,"uuid":"286542659","full_name":"Jonarzz/stack-overflow","owner":"Jonarzz","description":"A repository in which I keep the code used to answer questions on Stack Overflow","archived":false,"fork":false,"pushed_at":"2023-09-03T06:45:45.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T14:33:04.902Z","etag":null,"topics":["java","stackoverflow"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jonarzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-10T17:49:09.000Z","updated_at":"2024-01-15T15:56:55.000Z","dependencies_parsed_at":"2024-11-14T00:36:13.908Z","dependency_job_id":"2a528292-2751-4e55-a251-a42143ffc45e","html_url":"https://github.com/Jonarzz/stack-overflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonarzz%2Fstack-overflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonarzz%2Fstack-overflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonarzz%2Fstack-overflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonarzz%2Fstack-overflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jonarzz","download_url":"https://codeload.github.com/Jonarzz/stack-overflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600900,"owners_count":19988820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","stackoverflow"],"created_at":"2024-11-14T00:36:11.265Z","updated_at":"2026-06-08T00:32:04.881Z","avatar_url":"https://github.com/Jonarzz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stack-overflow\n\n[![CC BY-SA 4.0][cc-by-sa-shield]][stack-overflow-licensing]\n\nA repository in which I keep the code used to answer questions on Stack Overflow.\n\n## FAQ\n\n- [Mockito.mockStatic examples](https://github.com/Jonarzz/stack-overflow/blob/mockito/mock-static/src/test/java/io/github/jonarzz/MockitoStaticVoidTest.java)\n\n## Code for answers\n\n| Question                                                                                                                                                                                     | Answer                                                                                                     |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [Percisely configure spring junit 5 test config](https://stackoverflow.com/questions/63342469)                                                                                               | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63342469)                                          |\n| [Reading and writing file in ISO-8859-1 encoding?](https://stackoverflow.com/questions/63363359)                                                                                             | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63363359)                                          |\n| [Java string problem: replacing specific part of a string](https://stackoverflow.com/questions/63364411)                                                                                     | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63364411)                                          |\n| [Unable to wire in dependency using MockBean in WebMVCTest](https://stackoverflow.com/questions/63382047)                                                                                    | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63382047)                                          |\n| [Using mokito.when for method with String and Class\u003cT\u003e arguments](https://stackoverflow.com/questions/63438057)                                                                              | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63438057)                                          |\n| [Mockito.spy object is not being recognized](https://stackoverflow.com/questions/64511818/mockito-spy-object-is-not-being-recognized/64514179#64514179)                                      | [Branch](https://github.com/Jonarzz/stack-overflow/tree/64511818)                                          |\n| [Sequence java with Semaphores](https://stackoverflow.com/questions/72853368/sequence-java-with-semaphores)                                                                                  | [Branch](https://github.com/Jonarzz/stack-overflow/tree/72853368)                                          |\n| [Propper way to describe request body as java class](https://stackoverflow.com/questions/73296988/propper-way-to-describe-request-body-as-java-class/73300995#73300995)                      | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73296988)                                          |\n| [How to mock a ObjectProvider\\\u003cXXX\u003e that is autowired?](https://stackoverflow.com/questions/73297910/how-to-mock-a-objectproviderxxx-that-is-autowired/73301298#73301298)                    | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73297910)                                          |\n| [\"incompatible parameter types in method reference\" when trying to method reference Class method](https://stackoverflow.com/a/73302831/3305737)                                              | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73302606)                                          |\n| [take liquibase scripts not from resource folder during unit tests](https://stackoverflow.com/a/73302394/3305737)                                                                            | [Branch in another repo](https://github.com/Jonarzz/refactoring-katas/tree/stack-overlow-answers/73301167) |\n| [How to execute the code of a used Component instead @Mock the results in JUnit Tests?](https://stackoverflow.com/a/73323172/3305737)                                                        | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73322701)                                          |\n| [Testing CompletableFuture.supplyAsync with Mockito](https://stackoverflow.com/a/73332488/3305737)                                                                                           | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73332148)                                          |\n| [Group Anagrams - LeetCode](https://stackoverflow.com/questions/73286781/group-anagrams-leetcode/73342662#73342662)                                                                          | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73286781)                                          |\n| [List of elements into object](https://stackoverflow.com/a/73349633/3305737)                                                                                                                 | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73340254)                                          |\n| [How to mock findByPrincipalName in spring\\mockito](https://stackoverflow.com/a/73657637/3305737)                                                                                            | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73651394)                                          |\n| [How to mock a method which has concat() (String class' method) used in its argument?](https://stackoverflow.com/a/73659852/3305737)                                                         | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73659232)                                          |\n| [Awaitility check Mockito Spy invocation times failed](https://stackoverflow.com/a/73836115/3305737)                                                                                         | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73835874)                                          |\n| [Junit for generateToken() method for JWT in Springboot](https://stackoverflow.com/a/73950954/3305737)                                                                                       | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73932400)                                          |\n| [Execute method from JpaRepository in SpyBean](https://stackoverflow.com/a/73963728/3305737)                                                                                                 | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73937973)                                          |\n| [Mockito mock return value of static method of util class](https://stackoverflow.com/a/75078521/3305737)                                                                                     | [Branch](https://github.com/Jonarzz/stack-overflow/tree/75078316)                                          |\n| [Mock a MDC data in spring boot test](https://stackoverflow.com/a/75274190/3305737)                                                                                                          | [Branch](https://github.com/Jonarzz/stack-overflow/tree/75273064)                                          |\n| [I'm creating unit test for a static class and it has method call of another static method from same class? How to can mock that method call?](https://stackoverflow.com/a/76575535/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/76571504)                                          |\n\n[stack-overflow-licensing]: https://stackoverflow.com/help/licensing\n\n[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonarzz%2Fstack-overflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonarzz%2Fstack-overflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonarzz%2Fstack-overflow/lists"}