If you want to write zero defect code, writing test code is the key. The validity and reliability of the test code is also very important, so I recently wrote a little bit of test code and summarized "100 million" practical skills.
1, How to access private methods or properties of a class
1.1 if a class can construct an instanc ...
Posted on Fri, 19 Nov 2021 19:38:21 -0500 by shocker-z
Detailed design and implementation of unit test
Unit test principle:
The execution results are automatically given through A series of assertions without human judgment (Alibaba development manual stipulates that no output is allowed to judge by naked eyes) (A)Test cases cannot depend on each other and are independent (I)Unit tests can be exe ...
Posted on Fri, 05 Nov 2021 20:54:19 -0400 by kof20012
Gatling is a high-performance server performance testing tool developed based on Scala. It is also a powerful load testing tool. It is designed for ease of use, high maintainability and high performance. Out of the box, Gatling has become the preferred tool for load testing any HTTP server due to its excellent support for HTTP protocol. Offici ...
Posted on Mon, 01 Nov 2021 10:30:35 -0400 by raptoni
Writing method of unit test (JUnit 5)
1 unit test concept
During unit test, it refers to the test code written for the smallest functional unit to determine that the actual result is consistent with the expected result. The smallest functional unit in java is the method. When unit testing the function of a method, you don't have to care abou ...
Posted on Tue, 26 Oct 2021 19:08:49 -0400 by sbcwebs
SpringBoot - JUnit unit test
In this section, you learn about spring boot using Junit for unit testing.
1. JUnit overview
1.1 introduction to JUnit
JUnit 5 is the next generation of JUnit. The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java 8 and above, as well as enabling ...
Posted on Tue, 12 Oct 2021 16:58:54 -0400 by Allan-
MetaObject is a reflection tool class for Mybatis that is highly encapsulated, gets values based on attributes, sets values, and supports the nesting structure of objects objectWrapper is to get the property value of the current object and does not support object nesting MetaClass supports getting child attributes Reflector simply use ...
1: Unit test, integration test, function test
The particle size is the smallest. Generally, the development team uses the white box method to test whether the main test units comply with the "design"; It refers to the inspection and verification of the smallest testable unit in the software
integration testing ...
Posted on Fri, 08 Oct 2021 06:12:34 -0400 by VFRoland
Catalogue of series articles
[Chapter 1 springboot+junit5 exercise, from simple to deep (I)]( https://editor.csdn.net/md?not_checkout=1&articleId=120584779 )
All along, my development mode has been: requirements analysis - > code implementation - > writing unit tests. Through the understanding of the concept of Tes ...
Posted on Wed, 06 Oct 2021 18:02:42 -0400 by kumarsatishn
Common unit tests are test methods and API s. Let's demonstrate the simple use of Xunit test framework. Some are unit tests written for demonstration.
There is a reversal at the bottom. Be sure to see the last
Create a unit test project
This article also operates on the basis of the original project. Right click th ...
Posted on Thu, 23 Sep 2021 05:49:19 -0400 by benrussell