-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
<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)
Metadata
Metadata
Assignees
Labels
No labels