We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<dependency> <groupId>com.github.jsonzou</groupId> <artifactId>jmockdata</artifactId> <version>4.3.0</version> <scope>test</scope> </dependency>
java代码如下:
def dto = JMockData.mock(CartDTO, config) def itemDto1 = JMockData.mock(CartItemDTO, config); itemDto1.setType("VARIANT") itemDto1.setQty(10) itemDto1.setProductId(1L) def itemDto2 = JMockData.mock(CartItemDTO, config); itemDto2.setType("STANDARD") itemDto2.setQty(10) itemDto2.setProductId(2L) def itemDto3 = JMockData.mock(CartItemDTO, config); itemDto3.setType("NA") itemDto3.setQty(10) itemDto3.setProductId(3L)
debug 截图
The text was updated successfully, but these errors were encountered:
看情况是 MockConfig#setEnabledCircle(true) 了,配置这个代表启用对象缓存
MockConfig#setEnabledCircle(true)
Sorry, something went wrong.
No branches or pull requests
java代码如下:
debug 截图
The text was updated successfully, but these errors were encountered: