BAEL-5545: fixed formatting issue

This commit is contained in:
Elmar Mammadov 2022-07-20 20:47:28 +02:00
parent e934c96f6d
commit bce765b959
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,7 @@
package com.baeldung.spring.jdbc.batch;
import com.baeldung.spring.jdbc.batch.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.CommandLineRunner;

View File

@ -2,6 +2,7 @@ package com.baeldung.spring.jdbc.batch.service;
import com.baeldung.spring.jdbc.batch.model.Product;
import com.baeldung.spring.jdbc.batch.repo.ProductRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ -36,7 +37,6 @@ class ProductServiceUnitTest {
@Captor
ArgumentCaptor<List<Product>> proArgumentCaptor;
@BeforeEach
void setUp() {
this.productRepository = mock(ProductRepository.class);
@ -45,7 +45,6 @@ class ProductServiceUnitTest {
this.productService = new ProductService(this.productRepository, this.random, this.clock);
}
@Test
void testWhenCreateProductsThenShouldSaveAndReturnElapsedTime() {
when(random.nextInt(4))
@ -58,10 +57,8 @@ class ProductServiceUnitTest {
when(clock.millis())
.thenReturn(100L,500L);
final long actualElapsedTime = productService.createProducts(2);
assertThat(actualElapsedTime)
.isEqualTo(400L);