Skip to content

Commit

Permalink
Fix #1722: Fix CallbackUrlBehaviorTest (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnpsk authored Oct 8, 2024
1 parent cccd79a commit 3f3ccb0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import io.getlime.security.powerauth.app.server.service.callbacks.model.CallbackUrlConvertor;
import io.getlime.security.powerauth.app.server.service.exceptions.GenericServiceException;
import io.getlime.security.powerauth.app.server.service.model.ServiceError;
import io.getlime.security.powerauth.app.server.task.CleaningTask;
import jakarta.persistence.EntityManager;
import jakarta.transaction.Transactional;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -73,6 +74,12 @@ class CallbackUrlBehaviorTest {
@MockBean
private CallbackUrlEventService callbackUrlEventService;

/**
* Mock CleaningTask to avoid running scheduled job when mocking CallbackUrlEventService
*/
@MockBean
private CleaningTask cleaningTask;

@Test
void testCreateCallbackUrl() throws Exception {
final CreateCallbackUrlRequest request = new CreateCallbackUrlRequest();
Expand Down

0 comments on commit 3f3ccb0

Please sign in to comment.