Samwel Nyandorosamwel.hashnode.dev·Jul 28, 2023Understanding the Basics of Unit Testing with Mockito: A Comprehensive IntroductionUnit testing is an important aspect of software development that aims to verify the correctness of individual units or components of a software system. This helps identify defects early in the development process and facilitates maintenance and rewor...Discuss·10 likesunittesting
Prafull Kulkarnistudentprafull.hashnode.dev·Jul 17, 2023Let's Mock it-o![Unit Test Framework: JUnit and Mocking Framework: Mockito] What is it? Unit testing: Unit Testing is a type of software testing where individual units or components of the software are tested using some available tools like JUnit, TestNG, Mocha etc....Discussunit testing
Sanskriti HarmukhforKeploy Community Blogcommunity.keploy.io·May 4, 2023Simplifying JUnit Test Stubs and MockingWhat's the first thing that comes to your mind when you hear "mocking"? Is it an expression when you laugh by making fun of something? Well, If yes, don't worry you are not alone as I thought the same initially. But, with time I understood the meanin...Discuss·2 likes·124 readsmockito
Amr Khaledamrtechuniverse.com·Jan 31, 2023Spring Unit Testing with Mockito For BeginnersSpring Unit Testing with Mockito For Beginners This tutorial is part of Springing into Action: A Spring Boot Journey from Novice to Pro Series, be sure to check it out for more related content! Spring provides several powerful features for unit testi...Discuss·255 readsSpringing into Action: A Spring Boot Journey from Novice to ProSpringboot
Madhurendramaddyraj.hashnode.dev·Jan 22, 2023Java is incomplete without these Libraries and APIs. 8 Libraries and APIs every JAVA developer should know in 2023.Software development is incomplete without having a programming language. Libraries and APIs are making programming languages strong and powerful. How good and experienced Java developer depends on how extensive knowledge of API, including JDK and th...Discuss·40 readsJava
Akshay Thakurblog.aksact.dev·Dec 20, 2022The Year of Rocket2022 will remain a watershed year in my career as a Software Developer. Although I had begun working as a Java developer in 2020, it was in 2022 that I truly embraced software development as a field and convinced myself that this indeed was my callin...Discuss·1 like·101 readslearning
Tej Pratap Singhblog.tejpratapsingh.com·Oct 19, 2022Mockito: ArgumentMatcher vs ArgumentCaptorMockito.when() allows us to mock behavior of methods in that class. But in order to achieve this we need to mock supplied parameters exactly as our source class expected, If any of our parameter is mismatched, our method will not be mocked and it wil...Discuss·2 likes·199 readsJava Testing With MocksAndroid
Tej Pratap Singhblog.tejpratapsingh.com·Oct 17, 2022Powermock CheatSheet: Tldr and TipsWhy we need Powermock? Although Mockito is most popular Mocking Library for Java Developers, But there are certain cases where Simple Mockito does not work. For Example, if your codebase uses any Singleton, you cannot mock them with Simple Mockito. T...Discuss·1 like·262 readsJava Testing With MocksPowerMockito
Tej Pratap Singhblog.tejpratapsingh.com·Oct 12, 2022Mockito CheatSheet: Tldr and TipsThese are some of the useful methods and classes provided by Mockito 1. Mockito.mock() Creates a mock of any class. By default, it will return default value for methods and fields when not mocked. For Example: Primitive data types such as byte, short...Discuss·1 like·289 readsJava Testing With MocksJava
Shane Jenningsstacktobasics.com·May 4, 2020Mockito CheatsheetMockito is a great framework for testing in java. I use it all the time and have done for many years now. It works hand in hand with dependnecy injection, a topic I covered in my last blog "Spring for Humans". However I sometimes find it's a victim o...Discuss·952 readsJava