JAVA-8638: addressing PR review comments.
This commit is contained in:
parent
fdeab133a5
commit
952b06b20b
|
@ -1,2 +1,2 @@
|
|||
spring.jpa.show-sql=true
|
||||
spring.jpa.show-sql=false
|
||||
spring.jpa.defer-datasource-initialization=true
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue