mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-14 13:51:12 +00:00
#18 fixing 2 errors related to ValidatorTests
- test didn't have the suffix "Tests" so it was not taken into account when running Maven in the comand line - the POM was not configured so it can find Spring config files placed inside src/test/java
This commit is contained in:
parent
eb8ba79ba1
commit
4f8063e9b8
3 changed files with 13 additions and 59 deletions
|
|
@ -20,9 +20,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|||
* (useful when upgrading to a new version of Hibernate Validator/ Bean Validation)
|
||||
*
|
||||
*/
|
||||
@ContextConfiguration(locations = {"ValidatorTest-config.xml"})
|
||||
@ContextConfiguration(locations = {"ValidatorTests-config.xml"})
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
public class ValidatorTest {
|
||||
public class ValidatorTests {
|
||||
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
Loading…
Add table
Add a link
Reference in a new issue