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" }) @PropertySource({ "classpath:persistence-${envTarget:h2}.properties" })
@ComponentScan({ "com.baeldung.spring.data.persistence" }) @ComponentScan({ "com.baeldung.spring.data.persistence" })
// @ImportResource("classpath*:springDataPersistenceConfig.xml") // @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 { public class PersistenceConfig {
@Autowired @Autowired

View File

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

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.hasSize;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;