HKHair77.hashnode.dev·Oct 7, 2024Mockito 가 뭔데?Java 프로젝트의 테스트 코드를 작성할 때 사용할 수 있는 다양한 테스트 방식들이 있다. @SpringBootTest, @SpringMvcTest, @DataJpaTest 등등 그 중에서 많이 사용되고 있는 Mockito 관련 내용을 정리를 해 보자 1. Mockito란? Mockito는 Java 애플리케이션을 위한 오픈소스 모킹 프레임워크이다. Mock 이라는 말은 흉내낸다는 말을 담고 있다. Mock이라는 객체를 만들어서 어떤 객체의 동작...Discuss·1 likeTesting
Piotrpiotrd.hashnode.dev·Sep 1, 2024Mockito and strange UnfinishedStubbing problemsStrange errors Have you ever had an UnfinishedStubbingException or some other Mockito problem, that seemed to be wrong? The code written properly was having some random problems. Like this user: https://groups.google.com/g/mockito/c/uDKs5cKh61g org.m...Discuss·279 readsmockito
Harish Kunchalaharishkunchala.com·Jul 20, 2024Flutter Unit Testing with Mockito:In the previous article. We saw how to run the tests using Mocktail. In here we are going to look at how to do it using Mockito. Mocks allow emulating a live web service or database and return specific results depending on the situation. In here we a...DiscussFlutter Testing CourseFlutter
Juan Pablo Saldivar Rojasjpsaldivarrojas.hashnode.dev·Jun 18, 2024JUnit y Mockito — Comenzando mis primeros testJUnit Es un framework open source que permite realizar pruebas unitarias y de integración sobre sistemas en JAVA. Este framework disponibiliza herramientas, clases y métodos que simplifican la elaboración de las pruebas de sistemas. Algunos términos ...DiscussJava
Thunderthunderbyte.hashnode.dev·May 24, 20242024.05.25 Today I LearnedTIL: 2024-05-25 토요일 오늘의 목표 Test Code에 대한 경각심 학습한 내용 이번 creww project에서는 테스트 커버리지 90% 이상이 목표다. 그래서 mock에 대해서 공부했다. Mocking이란? Mocking은 테스트 환경에서 의존성을 시뮬레이션하는 기법이다. 실제 객체 대신 가짜 (Mock) 객체를 사용하여 테스트를 수행한다. 이를 통해 테스트가 독립적으로 실행되며, 외부 시스템(데이터베이스,네트워크 등)...DiscussDiaryTIL
Teddy Okaformockapi.hashnode.dev·May 21, 2024Integrating MockAPI with Your CI/CD Pipeline for Seamless TestingContinuous Integration and Continuous Deployment (CI/CD) pipelines are essential for modern software development, ensuring that code changes are automatically tested and deployed, leading to faster and more reliable releases. Integrating MockAPI into...Discussci-cd
Srisrip.hashnode.dev·Apr 30, 2024A Beginner's Guide to Project especially in Java Full Stack Development: Idea to DeploymentToday, we're embarking on an exciting journey into the world of Java full stack development. Whether you're a complete beginner or someone looking to expand their skill set, this blog will guide you through the complete end-to-end flow of a Java full...Discussend to end development
Sudip Parajulisudipparajuli.hashnode.dev·Apr 12, 2024Comprehensive Guide to Testing REST APIs: Best Practices, Tools, and ExamplesAs a software developer, you know that writing code is just the start. To make sure your app works as expected and lasts, you need to test it thoroughly. This is especially important for building REST APIs, where a bug can have big consequences. In t...Discuss·5 likes·358 readsmockito
Nicholas Zhannz.hashnode.dev·Jan 31, 2024Mastering Exception Mocking with MockitoThe art of programming is the art of organizing complexity, of mastering multitude and avoiding its bastard chaos as effectively as possible. — Edsger Dijkstra Introduction In this article, we will focus specifically on the aspect of exception mocki...Discuss·37 readsJava
HAMZA BRAIMIbraimi.hashnode.dev·Jan 19, 2024🛠️ Mastering Unit Testing with Mockito and JUnit5! 🚀When you're creating a Java application, ensuring it works as expected is crucial. This is where JUnit testing comes in. JUnit is a unit testing framework for the Java programming language, playing a crucial role in test-driven development (TDD) to e...Discuss·149 readsMockit