Java code samples that are used in my blog: Automation Rhapsody
Code examples for following JUnit posts:
- Use JUnit rules to debug failed API tests
- Retry JUnit failed tests immediately
- JUnit methods execution sequence
- Avoid multithreading problems in Java using ThreadLocal
- Mock JUnit tests with Mockito example
- Assert Mockito mock method arguments if no equals() method implemented
- Data driven testing with JUnit parameterized tests
- Mock static methods in JUnit with PowerMock example
- Verify static method was called with PowerMock
- Call private method with PowerMock
- Mock private method call with PowerMock
- Mock new object creation with PowerMock
Code examples for following WireMock posts:
Code examples for following Apache POI posts:
Code examples for following Java 8 posts: