Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonarzz/stack-overflow

A repository in which I keep the code used to answer questions on Stack Overflow
https://github.com/jonarzz/stack-overflow

java stackoverflow

Last synced: 29 days ago
JSON representation

A repository in which I keep the code used to answer questions on Stack Overflow

Awesome Lists containing this project

README

        

# stack-overflow

[![CC BY-SA 4.0][cc-by-sa-shield]][stack-overflow-licensing]

A repository in which I keep the code used to answer questions on Stack Overflow.

## FAQ

- [Mockito.mockStatic examples](https://github.com/Jonarzz/stack-overflow/blob/mockito/mock-static/src/test/java/io/github/jonarzz/MockitoStaticVoidTest.java)

## Code for answers

| Question | Answer |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
| [Percisely configure spring junit 5 test config](https://stackoverflow.com/questions/63342469) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63342469) |
| [Reading and writing file in ISO-8859-1 encoding?](https://stackoverflow.com/questions/63363359) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63363359) |
| [Java string problem: replacing specific part of a string](https://stackoverflow.com/questions/63364411) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63364411) |
| [Unable to wire in dependency using MockBean in WebMVCTest](https://stackoverflow.com/questions/63382047) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63382047) |
| [Using mokito.when for method with String and Class arguments](https://stackoverflow.com/questions/63438057) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/63438057) |
| [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) |
| [Sequence java with Semaphores](https://stackoverflow.com/questions/72853368/sequence-java-with-semaphores) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/72853368) |
| [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) |
| [How to mock a ObjectProvider\ 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) |
| ["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) |
| [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) |
| [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) |
| [Testing CompletableFuture.supplyAsync with Mockito](https://stackoverflow.com/a/73332488/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73332148) |
| [Group Anagrams - LeetCode](https://stackoverflow.com/questions/73286781/group-anagrams-leetcode/73342662#73342662) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73286781) |
| [List of elements into object](https://stackoverflow.com/a/73349633/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73340254) |
| [How to mock findByPrincipalName in spring\mockito](https://stackoverflow.com/a/73657637/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73651394) |
| [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) |
| [Awaitility check Mockito Spy invocation times failed](https://stackoverflow.com/a/73836115/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73835874) |
| [Junit for generateToken() method for JWT in Springboot](https://stackoverflow.com/a/73950954/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73932400) |
| [Execute method from JpaRepository in SpyBean](https://stackoverflow.com/a/73963728/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/73937973) |
| [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) |
| [Mock a MDC data in spring boot test](https://stackoverflow.com/a/75274190/3305737) | [Branch](https://github.com/Jonarzz/stack-overflow/tree/75273064) |
| [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) |

[stack-overflow-licensing]: https://stackoverflow.com/help/licensing

[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg