Skip to content

Commit

Permalink
fix:unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youngzil committed Oct 14, 2024
1 parent b9fd00b commit adba638
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public class ItemSetServiceTest extends AbstractIntegrationTest {
@Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
public void testUpdateSetWithoutItemNumLimit() {

when(bizConfig.itemKeyLengthLimit()).thenReturn(128);
when(bizConfig.itemValueLengthLimit()).thenReturn(20000);

when(bizConfig.isItemNumLimitEnabled()).thenReturn(false);
when(bizConfig.itemNumLimit()).thenReturn(5);

Expand All @@ -74,6 +77,9 @@ public void testUpdateSetWithoutItemNumLimit() {
@Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
public void testUpdateSetWithItemNumLimit() {

when(bizConfig.itemKeyLengthLimit()).thenReturn(128);
when(bizConfig.itemValueLengthLimit()).thenReturn(20000);

when(bizConfig.isItemNumLimitEnabled()).thenReturn(true);
when(bizConfig.itemNumLimit()).thenReturn(5);

Expand Down Expand Up @@ -104,6 +110,9 @@ public void testUpdateSetWithItemNumLimit() {
@Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD)
public void testUpdateSetWithItemNumLimit2() {

when(bizConfig.itemKeyLengthLimit()).thenReturn(128);
when(bizConfig.itemValueLengthLimit()).thenReturn(20000);

when(bizConfig.isItemNumLimitEnabled()).thenReturn(true);
when(bizConfig.itemNumLimit()).thenReturn(5);

Expand Down

0 comments on commit adba638

Please sign in to comment.