BAEL-16326 Week 34 | go through the integration test results and see what NEW failing tests we have (#7641)

- fixing newly failing integration tests
This commit is contained in:
Dhawal Kapil 2019-08-24 14:45:17 +05:30 committed by Eugen
parent 4c6d95a261
commit 0ff976ef77
3 changed files with 3 additions and 4 deletions

View File

@ -26,7 +26,7 @@ import com.google.common.base.Preconditions;
@PropertySource({ "classpath:persistence-${envTarget:h2}.properties" })
@ComponentScan({ "com.baeldung.spring.data.persistence" })
// @ImportResource("classpath*:springDataPersistenceConfig.xml")
@EnableJpaRepositories(basePackages = "com.baeldung.spring.data.persistence.dao")
@EnableJpaRepositories(basePackages = { "com.baeldung.spring.data.persistence.dao", "com.baeldung.spring.data.persistence.jpaquery" })
public class PersistenceConfig {
@Autowired

View File

@ -26,7 +26,7 @@ import java.util.List;
*/
@Configuration
@EnableWebMvc
@ComponentScan({ "com.baeldung.web" })
@ComponentScan({ "com.baeldung.web", "com.baeldung.requestmapping" })
public class MvcConfig implements WebMvcConfigurer {
public MvcConfig() {
@ -66,7 +66,6 @@ public class MvcConfig implements WebMvcConfigurer {
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
configurer.defaultContentType(MediaType.APPLICATION_JSON);
}
@Override
public void addCorsMappings(CorsRegistry registry) {

View File

@ -1,5 +1,5 @@
package com.baeldung.web.test;
package com.baeldung.requestmapping;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;