BAEL-7547: adding h2 for non-testcontainers tests

This commit is contained in:
emanueltrandafir1993 2024-03-22 22:30:39 +01:00 committed by emanuel.trandafir
parent fbd72d1a09
commit 9502473ac2
3 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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

View File

@ -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