File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
main/java/com/tinyengine/it/common/base
test/java/com/tinyengine/it/controller Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2525@ Getter
2626@ Setter
2727public class HistoryEntity extends BaseEntity {
28- @ Schema (name = "refId " , description = "关联主表id" )
28+ @ Schema (name = "block_id " , description = "关联主表id" )
2929 @ JsonProperty ("block_id" )
3030 private Integer refId ;
3131
Original file line number Diff line number Diff line change 1818
1919import com .tinyengine .it .common .base .Result ;
2020import com .tinyengine .it .mapper .BlockGroupMapper ;
21- import com .tinyengine .it .model .dto .BlockGroupDto ;
2221import com .tinyengine .it .model .entity .BlockGroup ;
2322import com .tinyengine .it .service .material .BlockGroupService ;
2423
@@ -67,7 +66,7 @@ void testCreateBlockGroups() {
6766 when (blockGroupService .createBlockGroup (any (BlockGroup .class ))).thenReturn (new Result <List <BlockGroup >>());
6867
6968 Result <List <BlockGroup >> result = blockGroupController .createBlockGroups (new BlockGroup ());
70- Assertions .assertEquals (new Result <List <BlockGroupDto >>(), result );
69+ Assertions .assertEquals (new Result <List <BlockGroup >>(), result );
7170 }
7271
7372 @ Test
@@ -87,7 +86,7 @@ void testDeleteBlockGroups() {
8786 mockData .setId (1 );
8887 when (blockGroupService .findBlockGroupById (anyInt ())).thenReturn (mockData );
8988 when (blockGroupService .deleteBlockGroupById (anyInt ())).thenReturn (Integer .valueOf (0 ));
90- BlockGroupDto resultData = new BlockGroupDto ();
89+ BlockGroup resultData = new BlockGroup ();
9190
9291 Result <List <BlockGroup >> result = blockGroupController .deleteBlockGroups (1 );
9392 Assertions .assertEquals (resultData , result .getData ().get (0 ));
You can’t perform that action at this time.
0 commit comments