Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lrskyum committed Jan 16, 2025
1 parent 77aead4 commit b97d10c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions services/basket-producer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ configurations {

repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}

ext {
Expand All @@ -36,11 +37,11 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation 'org.liquibase:liquibase-core'
implementation("net.javacrumbs.shedlock:shedlock-spring:6.0.2")
implementation("net.javacrumbs.shedlock:shedlock-provider-jdbc-template:6.0.2")
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.liquibase:liquibase-core'
implementation "net.javacrumbs.shedlock:shedlock-spring:6.0.2"
implementation "net.javacrumbs.shedlock:shedlock-provider-jdbc-template:6.0.2"
implementation 'org.springframework.boot:spring-boot-testcontainers'
implementation 'org.testcontainers:junit-jupiter'
implementation 'org.testcontainers:postgresql'
Expand All @@ -51,6 +52,7 @@ dependencies {
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'org.postgresql:r2dbc-postgresql'
annotationProcessor 'org.projectlombok:lombok'
// testImplementation 'io.projectreactor.tools:blockhound:1.0.10.RELEASE'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ExtendWith(SpringExtension.class)
@ActiveProfiles("tempdb")
class CustomerBasketRepositoryTest {
class QueryCustomerBasketRepositoryTest {

@Autowired
private BasketRepository basketRepository;
Expand All @@ -32,7 +32,7 @@ void shouldInitializeDatabase_withTenOrders() {
// Assert
StepVerifier.create(orders.collectList())
.expectSubscription()
.assertNext(list -> assertThat(list.size()).isGreaterThanOrEqualTo(10)) // Check size
.assertNext(list -> assertThat(list.size()).isGreaterThanOrEqualTo(10))
.expectComplete()
.verify();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public void shouldGetInitialOrders_withTenOrders() {
assertNotNull(basket);
assertFalse(basket.isEmpty(), "Expected at least 10 elements, but found " + basket.size());

basket.forEach(order -> {
assertNotNull(order.getBasketStatus());
assertNotNull(order.getBasketDateUtc());
basket.forEach(b -> {
assertNotNull(b.getBasketStatus());
assertNotNull(b.getBasketDateUtc());
});
});
}
Expand Down

0 comments on commit b97d10c

Please sign in to comment.