Testing the Impossible with PowerMock

Testing is important. However, not all designs are testable and somethings we end up not being able to test things. A good design is always testable but not all testable code means you have good design. Sometimes we need to deal with old libs, old systems, 3rd party, or some active lib that is used a lot in your company that you cannot refactor. Not all tests have value however we need to be to test things which sometimes can be very very challenging. Powermock helps us to test things that were impossible before.  Today I made a short video to show Powermock in action. So let's get started. 

Video

Code

https://github.com/diegopacheco/java-pocs/tree/master/pocs/testing-powermock-mockito-fun

Cheers,

Diego Pacheco

Popular posts from this blog

Kafka Streams with Java 15

Rust and Java Interoperability

HMAC in Java