BAEL-7547: adding h2 for non-testcontainers tests
This commit is contained in:
parent
fbd72d1a09
commit
9502473ac2
|
@ -61,6 +61,13 @@
|
||||||
<version>1.1.3</version>
|
<version>1.1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.h2database</groupId>
|
||||||
|
<artifactId>h2</artifactId>
|
||||||
|
<version>2.2.224</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.testcontainers</groupId>
|
<groupId>org.testcontainers</groupId>
|
||||||
<artifactId>kafka</artifactId>
|
<artifactId>kafka</artifactId>
|
||||||
|
|
|
@ -15,7 +15,6 @@ import com.baeldung.springmodulith.application.events.orders.OrderCompletedEvent
|
||||||
import com.baeldung.springmodulith.application.events.rewards.LoyalCustomersRepository;
|
import com.baeldung.springmodulith.application.events.rewards.LoyalCustomersRepository;
|
||||||
|
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@ComponentScan(basePackages = "com.baeldung.springmodulith.application.events")
|
|
||||||
class EventListenerUnitTest {
|
class EventListenerUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -10,7 +10,6 @@ import org.springframework.context.annotation.ComponentScan;
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@ComponentScan(basePackages = "com.baeldung.springmodulith.application.events")
|
|
||||||
class EventPublisherUnitTest {
|
class EventPublisherUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
Loading…
Reference in New Issue