@@ -49,6 +49,9 @@ public class ItemSetServiceTest extends AbstractIntegrationTest {
4949 @ Sql (scripts = "/sql/clean.sql" , executionPhase = Sql .ExecutionPhase .AFTER_TEST_METHOD )
5050 public void testUpdateSetWithoutItemNumLimit () {
5151
52+ when (bizConfig .itemKeyLengthLimit ()).thenReturn (128 );
53+ when (bizConfig .itemValueLengthLimit ()).thenReturn (20000 );
54+
5255 when (bizConfig .isItemNumLimitEnabled ()).thenReturn (false );
5356 when (bizConfig .itemNumLimit ()).thenReturn (5 );
5457
@@ -74,6 +77,9 @@ public void testUpdateSetWithoutItemNumLimit() {
7477 @ Sql (scripts = "/sql/clean.sql" , executionPhase = Sql .ExecutionPhase .AFTER_TEST_METHOD )
7578 public void testUpdateSetWithItemNumLimit () {
7679
80+ when (bizConfig .itemKeyLengthLimit ()).thenReturn (128 );
81+ when (bizConfig .itemValueLengthLimit ()).thenReturn (20000 );
82+
7783 when (bizConfig .isItemNumLimitEnabled ()).thenReturn (true );
7884 when (bizConfig .itemNumLimit ()).thenReturn (5 );
7985
@@ -104,6 +110,9 @@ public void testUpdateSetWithItemNumLimit() {
104110 @ Sql (scripts = "/sql/clean.sql" , executionPhase = Sql .ExecutionPhase .AFTER_TEST_METHOD )
105111 public void testUpdateSetWithItemNumLimit2 () {
106112
113+ when (bizConfig .itemKeyLengthLimit ()).thenReturn (128 );
114+ when (bizConfig .itemValueLengthLimit ()).thenReturn (20000 );
115+
107116 when (bizConfig .isItemNumLimitEnabled ()).thenReturn (true );
108117 when (bizConfig .itemNumLimit ()).thenReturn (5 );
109118
0 commit comments