Skip to content
Snippets Groups Projects

Resolve "Asynchronous transaction processing"

Merged Filip Kollár requested to merge 12-asynchronous-transaction-processing into master
@@ -7,11 +7,14 @@ import cz.muni.fi.obs.data.dbo.ScheduledPayment;
import cz.muni.fi.obs.data.repository.AccountRepository;
import cz.muni.fi.obs.data.repository.ScheduledPaymentRepository;
import cz.muni.fi.obs.exceptions.ResourceNotFoundException;
import cz.muni.fi.obs.jms.JmsConsumer;
import cz.muni.fi.obs.jms.JmsProducer;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.ActiveProfiles;
import java.time.Instant;
@@ -34,6 +37,12 @@ class ScheduledPaymentServiceTest {
@Autowired
private AccountRepository accountRepository;
@MockBean
private JmsConsumer jmsConsumer;
@MockBean
private JmsProducer jmsProducer;
private boolean setupDone = false;
@BeforeEach
Loading