JAVA-8638: addressing PR review comments.

This commit is contained in:
chaos2418 2021-11-23 19:12:32 +05:30
parent fdeab133a5
commit 952b06b20b
8 changed files with 7 additions and 8 deletions

View File

@ -1,2 +1,2 @@
spring.jpa.show-sql=true
spring.jpa.show-sql=false
spring.jpa.defer-datasource-initialization=true

View File

@ -20,7 +20,6 @@ import static org.springframework.data.domain.ExampleMatcher.GenericPropertyMatc
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {Application.class})
@TestPropertySource(properties = {"spring.jpa.show-sql=false"})
public class CarRepositoryIntegrationTest {
@Autowired

View File

@ -1,4 +1,4 @@
spring.jpa.show-sql=true
spring.jpa.show-sql=false
spring.jpa.defer-datasource-initialization=true
#MySql
#spring.datasource.url=jdbc:mysql://localhost:3306/baeldung

View File

@ -19,7 +19,7 @@ import com.baeldung.Application;
import com.baeldung.boot.domain.MerchandiseEntity;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, properties = {"spring.jpa.show-sql=false"})
@SpringBootTest(classes = Application.class)
public class InventoryRepositoryIntegrationTest {
private static final String ORIGINAL_TITLE = "Pair of Pants";

View File

@ -17,7 +17,7 @@ import java.util.List;
import static org.junit.Assert.assertEquals;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = QueryApplication.class, properties = {"spring.jpa.show-sql=false"})
@SpringBootTest(classes = QueryApplication.class)
public class UserRepositoryIntegrationTest {
private static final String USER_NAME_ADAM = "Adam";

View File

@ -16,7 +16,7 @@ import static org.springframework.test.context.jdbc.Sql.ExecutionPhase.AFTER_TES
@RunWith(SpringRunner.class)
@Sql(scripts = { "/test-movie-data.sql" })
@SpringBootTest(classes = LikeApplication.class, properties = {"spring.jpa.show-sql=false"})
@SpringBootTest(classes = LikeApplication.class)
@Sql(scripts = "/test-movie-cleanup.sql", executionPhase = AFTER_TEST_METHOD)
public class MovieRepositoryIntegrationTest {
@Autowired

View File

@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.entity.Fruit;
@RunWith(SpringRunner.class)
@SpringBootTest(properties = {"spring.jpa.show-sql=false"})
@SpringBootTest
public class FruitPopulatorIntegrationTest {
@Autowired

View File

@ -16,7 +16,7 @@ import com.baeldung.entity.Song;
import com.baeldung.repository.SongRepository;
@RunWith(SpringRunner.class)
@SpringBootTest(properties = {"spring.jpa.show-sql=false"})
@SpringBootTest
@Sql(scripts = { "/test-song-data.sql" })
public class SongRepositoryIntegrationTest {