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:
parent
4c6d95a261
commit
0ff976ef77
@ -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
|
||||||
|
@ -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("/**");
|
||||||
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user