Random developerrandom-dev.hashnode.dev·Nov 16, 2023Three Minutes to Mockito - A Primer on Mocking and verifying in JavaLet us create a class SearchWrapper in Java which does linear or binary search based on strategy. class SearchWrapper { BinarySearch binarySearch; LinearSearch linearSearch; SearchWrapper(binarySearch, linearSearch){ this.linearSearch = ...DiscussMocking
Ashok Kuduva Ananthanashokkuduvaananthan.hashnode.dev·Jun 24, 2023.NET 6 Web API Mocking DbContext & DbSet using MoqIn this article, we will explore how to create mock implementations for the DbContext and DbSet classes in Entity Framework, specifically targeting .NET 6 Web API applications. By following this step-by-step guide, you’ll gain insights into setting u...Discuss.net core
H.Enes Gökdağhenesgokdag.hashnode.dev·Nov 11, 2022The Logic of Mocking and WiremockGreetings, today I will try to give you information about the logic of mocking and using Wiremock. Mock objects are simulated objects that emulate the behavior of natural objects in a controlled manner. To test the behavior of an object, we need to m...Discuss·69 readsMocking
Hyunwoo Choihyunwoochoi.hashnode.dev·Aug 10, 2022How to deal with dependency issues among modulesIn general, firmware cannot be discussed without hardware dependency in embedded systems. For example, the led_controller module needs to use functions from the interface_gpio module to control hardware. When we need to unit test this type of interfa...Discuss·67 readsTDD - Embedded System using Cceedling
H.Enes Gökdağhenesgokdag.hashnode.dev·Aug 1, 2022TestcontainersSelamlar bugün size testcontainers hakkında bilgi vermeye çalışacağım.Projelerimize unit test yazarız ama sadece unit test yazmak yeterli olmayabilir. Örneğin bir database methodunun kullanıldığı bir methoda ilgili database methodunu mocklayıp unit t...Discuss·52 readsTesting
Joseph Wallaceoceans.hashnode.dev·Jun 28, 2022The Complete Guide to Getting Through Software Engineer Interviews at Facebook, Apple, Netflix, and GoogleFirst piece of advice: don't give yourself a deadline. Instead of learning the ideas first and then interviewing once you've done so, because you don't know how long the process will take and you don't want to restrict yourself by setting a really ri...Discuss·40 readsmock
Uche Ozoemenaincodethismeans.hashnode.dev·Jun 19, 2022[Learned This Week]: Taming Dependencies in Integration TestsIntegration Tests and Stubs Integration tests are used to test interrelated parts of an app. Some typical candidates for integration tests are code that interacts with a database and code that relies upon different standalone modules within a codebas...Discuss·167 readsJavaScript
Markus Meyermarkusmeyer.hashnode.dev·Jun 13, 2022Unit Test Azure Function with Table Extension in C#Table of Contents 1 Functions2 Unit Tests The new webjobs extensions can be used for Azure Table Storage CRUD operations with Azure Functions: Add nuget package to your Azure Functionnuget.org: Microsoft.Azure.WebJobs.Extensions.Tables dotnet add p...Discuss·2.0K readsAzure
H.Enes Gökdağhenesgokdag.hashnode.dev·Apr 24, 2022Mocklama Mantığı Ve WiremockSelamlar, bugün size mocklama mantığı ve Wiremock kullanımı hakkında bilgi vermeye çalışacağım. Mock(sahte) nesneler gerçek nesnelerin davranışını kontrollü olarak taklit eden benzetilmiş nesnelerdir. Bir nesnenin davranışını test etmek için o nesnen...Discuss·43 readsMocking