@@ -45,7 +45,7 @@ public void testInsertConsignRecord() {
45
45
HttpEntity requestEntity = new HttpEntity (null , headers );
46
46
Response <Double > response = new Response <>(1 , null , 3.0 );
47
47
ResponseEntity <Response <Double >> re = new ResponseEntity <>(response , HttpStatus .OK );
48
- Consign consignRequest = new Consign (UUID .randomUUID ().toString (), UUID .randomUUID (), UUID .randomUUID (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , true );
48
+ Consign consignRequest = new Consign (UUID .randomUUID ().toString (), UUID .randomUUID (). toString () , UUID .randomUUID (). toString (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , true );
49
49
ConsignRecord consignRecord = new ConsignRecord (UUID .randomUUID ().toString (), UUID .randomUUID ().toString (), UUID .randomUUID ().toString (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , 3.0 );
50
50
Mockito .when (restTemplate .exchange (
51
51
"http://ts-consign-price-service:16110/api/v1/consignpriceservice/consignprice/" + consignRequest .getWeight () + "/" + consignRequest .isWithin (),
@@ -63,7 +63,7 @@ public void testUpdateConsignRecord1() {
63
63
HttpEntity requestEntity = new HttpEntity (null , headers );
64
64
Response <Double > response = new Response <>(1 , null , 3.0 );
65
65
ResponseEntity <Response <Double >> re = new ResponseEntity <>(response , HttpStatus .OK );
66
- Consign consignRequest = new Consign (UUID .randomUUID ().toString (), UUID .randomUUID (), UUID .randomUUID (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , true );
66
+ Consign consignRequest = new Consign (UUID .randomUUID ().toString (), UUID .randomUUID (). toString () , UUID .randomUUID (). toString (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , true );
67
67
ConsignRecord consignRecord = new ConsignRecord (UUID .randomUUID ().toString (), UUID .randomUUID ().toString (), UUID .randomUUID ().toString (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 2.0 , 3.0 );
68
68
Mockito .when (repository .findById (Mockito .anyString ())).thenReturn (java .util .Optional .of (consignRecord ));
69
69
Mockito .when (restTemplate .exchange (
@@ -80,7 +80,7 @@ public void testUpdateConsignRecord1() {
80
80
81
81
@ Test
82
82
public void testUpdateConsignRecord2 () {
83
- Consign consignRequest = new Consign (UUID .randomUUID ().toString (), UUID .randomUUID (), UUID .randomUUID (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , true );
83
+ Consign consignRequest = new Consign (UUID .randomUUID ().toString (), UUID .randomUUID (). toString () , UUID .randomUUID (). toString (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , true );
84
84
ConsignRecord consignRecord = new ConsignRecord (UUID .randomUUID ().toString (), UUID .randomUUID ().toString (), UUID .randomUUID ().toString (), "handle_date" , "target_date" , "place_from" , "place_to" , "consignee" , "10001" , 1.0 , 3.0 );
85
85
Mockito .when (repository .findById (Mockito .anyString ())).thenReturn (java .util .Optional .of (consignRecord ));
86
86
Mockito .when (repository .save (Mockito .any (ConsignRecord .class ))).thenReturn (null );
0 commit comments