Tag: mockito
How to mock the QPS interface
February 2, 2024
by Shray Uppal
No Comments
During interface testing, it is common for some interfaces to call other service interfaces or third-party interfaces. This can be a problem when doing a...
Read More
How can MockAPI improve APP development efficiency?
February 2, 2024
by Samantha Rice
No Comments
In the process of APP development, if you can add a function to simulate the return of server data naturally (without affecting the final APK)...
Read More
Android Unit Testing (4) : Mock and use of Mockito
January 28, 2024
by Mrs. Sylvia Day
No Comments
Introduces Mock concepts in Android unit testing and the use of the Mockito framework
Read More
Android Unit Testing (iii) : Use of the PowerMock framework
January 28, 2024
by Jessica Wood
No Comments
The previous two articles covered JUnit and Mockito, one for assertions and one for simulating our non-test classes. PowerMock extends the Mockito framework to support...
Read More
Development-oriented testing Techniques (I) : Mocks
January 27, 2024
by Patricia Jones
No Comments
Introduction: Since Kent Beck put forward the concept of TDD(Test-driven Development) at the end of the last century, the boundary between Development and testing has...
Read More
Test #2 with Kotlin
January 22, 2024
by Stephen Shepard
No Comments
Spock maintainer Rob Fletcher describes the current state of the Kotlin testing framework and compares it to Spek, which is a variant of JetBrains' standard...
Read More
How to test Singleton in Service (1)
January 16, 2024
by Madison Cairns-Stevenson
No Comments
PowerMock explains the difficulty of mocking a singleton, leading to the introduction of PowerMock. Robolectric is also introduced to test Android services
Read More
Describe common libraries used in Android unit testing
January 15, 2024
by 梁家銘
No Comments
Business logic is generally tested during development. Junit, Mockito and Robolectric libraries are commonly used in Android unit test library. The most basic unit test...
Read More
Unit test tool -Mock
January 9, 2024
by Annette Holland
No Comments
Small knowledge, big challenge! This article is participating in the creation activity of "Essential Tips for Programmers". Unit testing what is unit testing why do...
Read More
Circular dependencies that may arise from @SpyBean
December 19, 2023
by Ms. Jacqueline Scott DVM
No Comments
Often encounter the problem of circular dependencies, @ SpyBean it is also possible to produce circular dependencies, and more simple and direct, this article compare...
Read More
Unit testing tool Mockito framework
December 17, 2023
by Daniel Ford
No Comments
Mockito is currently the most popular unit testing Mock framework. Using the Mock framework, we can create an external dependency, reduce the coupling between test...
Read More
Mock data in several poses
December 17, 2023
by Bruce Moreno
No Comments
Before and after the separation, often the backend is responsible for providing data interface, the front end is responsible for data display, but often the...
Read More
How can I mock against the random data my tests require
December 17, 2023
by Andrea Oliver
No Comments
Mocking.js is used to generate random data to intercept Ajax requests. By intercepting Ajax requests, generating and returning mock data from data templates, the front...
Read More
Basic tutorial on using Mockito and PowerMock
December 17, 2023
by Vedika Dube
No Comments
Mockito and PowerMock are both popular Mock frameworks in Java. Using Mock technology, we can isolate external dependencies so that we can unit test our...
Read More
Android unit Test (5) : Network interface test
December 17, 2023
by Darius Wood
No Comments
In daily development, we use the backend written to give us the interface to get data. Although we have some tools to request the interface,...
Read More
Unit test simulation framework Mockito
December 17, 2023
by Margaret Lloyd
No Comments
Mockito is a simulation framework for unit testing in Java. Create a mock object using the class argument (class, interface) that differs from the real...
Read More
With PowerMock, you no longer have to worry about failing your unit tests
December 17, 2023
by Hayley Price
No Comments
Advantages: Unit tests reduce bug rates and improve code quality. You can also familiarize yourself with the business through unit tests. Company requirements: Some companies...
Read More
Fastmock supports custom return status codes
December 17, 2023
by Leon Gallagher
No Comments
Sometimes you might want FastMock to return a status code other than 200 to debug your program. Now, you can do this with simple request...
Read More
QuickMock: Express based fast mock platform
December 17, 2023
by Elliot Chadwick-Jones
No Comments
Interested, you can star attention support, project address. In daily development, it is an important step to mock the back-end API data on the front...
Read More
Unit testing for Android (part 2) : Using the Mockito framework
December 17, 2023
by Yakshit Saha
No Comments
In real unit tests, where there is more or less coupling between the classes we are testing, we can use Mockito
Read More
All those things about unit testing, Mockito can do for you
December 15, 2023
by Dr. Angela Moran
No Comments
Abstract: I believe that every programmer when writing Unit Test will encounter some headaches: how to Test a REST interface; How to test a complex...
Read More
Introduction to mockJs
December 13, 2023
by 康中山
No Comments
This is the 15th day of my participation in the August More text challenge, the activity details check: August more text challenge in the previous...
Read More
Mockito: a powerful open source Java simulation testing framework
December 11, 2023
by 孫飛
No Comments
Mockito is a powerful simulation testing framework for Java development based on MIT protocol. Others include EasyMock, JMock, MockCreator, Mockrunner, MockMaker, and PowerMock.
Read More
New feature in FastMock – Import interfaces from my other projects
December 10, 2023
by Kathryn Webster
No Comments
Import interface from other projects 1. On the project Interface management page, click "Import from Other Projects". Note That the url and method of the...
Read More
How to leverage service virtualization to overcome test data barriers?
December 10, 2023
by Danielle Bowman
No Comments
One of the major challenges that software developers and testers face every day stems from the inability to get real data. A lot of times,...
Read More
Local deployment (Intranet deployment) Easy-mock
December 9, 2023
by 張承翰
No Comments
Easy-mock is a popular mock data site, but as more and more users use it, the easy-Mock interface is sometimes slow to respond (also due...
Read More
Use service virtualization to improve developer collaboration
December 7, 2023
by Chirag Chaudhari
No Comments
There's nothing more frustrating for a developer than constantly rebuilding things from scratch. One of the core principles of object-oriented design is the ability to...
Read More
Use Express Mock data
December 6, 2023
by Joseph Young
No Comments
Refer to the article 1, grab a folder to https://blog.csdn.net/abc6368765/article/details/85130579 $NPM install express - sav
Read More