Friday, August 28, 2020

Testing the Impossible with PowerMock

0 lượt xem comment 0 comments

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

Tags: video, code,

comment 0 comments

Chuyên mục văn hoá giải trí của VnExpress

.

© 2017 www.blogthuthuatwin10.com

Tầng 5, Tòa nhà FPT Cầu Giấy, phố Duy Tân, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội
Email: nguyenanhtuan2401@gmail.com
Điện thoại: 0908 562 750 ext 4548; Liên hệ quảng cáo: 4567.