Antoine Rey
98d9bbb629
Removing reference to the unknown UserResource class
2015-06-24 18:43:45 +02:00
Antoine Rey
ca3bb07fa4
Remove unused WebApplicationContext property
2015-06-18 18:29:49 +02:00
Antoine Rey
1b4d4256c4
Fix typo into javadoc
2015-06-18 18:28:31 +02:00
michaelisvy
c553d39f8d
Merge pull request #67 from mklose/patch-1
...
fix typo
2015-05-20 23:13:04 +08:00
michaelisvy
4c859ed512
minor update on comment
2015-05-12 19:52:00 +08:00
michaelisvy
80c1d243a1
Removed RSS/rome and added JSon
...
RSS is becoming outdated, JSon is a better example
2015-05-12 19:07:35 +08:00
michaelisvy
9914056a81
removing test that causes lots if issues
...
Happens since introduction of new mvc namespace tag for
content-negotiation
2015-05-10 06:45:39 +08:00
michaelisvy
694390d0c2
migrated assertion to assertJ
2015-05-10 06:33:10 +08:00
mklose
3f2d3ba72a
fix typo
2015-04-01 16:39:51 +02:00
michaelisvy
d8a2b5c737
cleanup on tests
2015-01-20 22:25:24 +08:00
michaelisvy
1dfc3b7a3a
Migrated test assertions to AssertJ
2015-01-20 22:02:34 +08:00
michaelisvy
35a179f88b
latest versions and imports cleanup
2015-01-20 21:21:27 +08:00
michaelisvy
5c9ab6bd06
test methods:used should/shouldNot
2015-01-16 09:08:22 +08:00
michaelisvy
7080682d3e
workaround because there seems to be a conflict
...
There seems to be a conflict between the following:
1) New MVC namespace syntax:
<mvc:content-negotiation use-not-acceptable="true">
<mvc:default-views>
<bean class="org.springframework.web.servlet.view.JstlView">
<property name="url" value="" />
</bean>
</mvc:default-views>
</mvc:content-negotiation>
2) Inside my Unit test:
ResultActions actions =
this.mockMvc.perform(get("/vets.xml").accept(MediaType.TEXT_XML));
actions.andDo(print()); // action is logged into the console
actions.andExpect(status().isOk());
2014-12-05 13:41:55 +08:00
Antoine Rey
076a124e0a
Fixes #37 with other default locale than english
...
Test in error with french default Locale:
org.junit.ComparisonFailure: expected:<[ne peut pas être vide]> but was:<[may not be empty]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.springframework.samples.petclinic.model.ValidatorTests.emptyFirstName(ValidatorTests.java:39)
2014-02-24 14:05:02 +01:00
Mic
5cfd482edc
removed default profile and replaced with "jpa"
2013-12-16 20:58:15 +09:00
Mic
c13f141251
introducing a "default" profile so default configuration is simpler
2013-06-28 12:00:29 +08:00
Mic
a2a12c4d52
#18 Simplified Validator test so it doesn't have to use Spring config anymore
2013-06-14 09:39:46 +08:00
Mic
754e27c001
removing unneeded attribute name
2013-06-12 11:34:05 +08:00
Mic
7b8a9ec8bc
#18 fixing error related to VisitsViewTests
...
- test didn't have the suffix "Tests" so it was not taken into account
when running Maven in the comand line
2013-06-08 21:17:35 +08:00
Mic
4f8063e9b8
#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
2013-06-08 21:15:34 +08:00
Mic
5bf31dbe5a
fixed JPA issue when updating existing owners/pets
2013-05-09 01:09:21 +08:00
Mic
80159fa3d7
fixed bug in JPA implementation: "save" methods were implemented using "merge" instead of "persist"
2013-05-07 10:54:35 +08:00
Mic
c88e3d462a
added a JUnit test for Bean Validation
2013-05-03 10:36:54 +08:00
Mic
6086dec5c3
updated copyright information
2013-03-20 15:33:29 +08:00
Mic
e0ba8bfa74
organized imports
2013-03-11 09:22:58 +08:00
Mic
dd0eb5a55e
improved/updated Javadoc in JUnit tests
2013-03-04 12:15:20 +08:00
Mic
faca0eb1c2
moved to tests to service level package
2013-02-26 17:38:06 +08:00
Mic
d7f5cd17a5
renaming dao-config.xml -> business-config.xml
2013-02-26 17:25:31 +08:00
Mic
be403a3017
migrate all JUnit Integration tests from the repo layer to the service layer (step 1)
2013-02-26 17:20:55 +08:00
Mic
70c046a927
Fixed test using Spring MVC Test framework
2013-02-21 14:27:13 +08:00
Gordon Dickens
14f882221f
file formatting and missing @Override on Java classes
2013-02-19 10:56:21 -05:00
Mic
cec8110236
moved Spring config files and changed AtomView example so it is based on Vets instead of Visits
2013-02-19 16:36:23 +08:00
Mic
d92d53110b
test doesn't run for now, disabling it until bug is solved
2013-02-16 03:27:43 +01:00
Mic
057015c14c
Spring MVC Test Framework and migration to Spring 3.2.1
...
- migrated to Spring 3.2.1
- added hamcrest to the POM so it can be used with the Spring MVC Test
Framework
- Started migrating a JUnit test to Spring MVC Test Framework (at this
stage, it stills doesn't work. It could be because of a conflict with
ContentNegotiatingViewResolver)
2013-02-15 15:31:04 +08:00
Mic
ddbe4b5c14
renamed test packages so they are aligned with main packages
2013-02-15 09:58:19 +08:00
Mic
b2626bd509
reviewed Javadoc for abstract test classes
2013-02-15 09:53:47 +08:00
Mic
c5ca72e80b
made sure @Transactional is not set on the Repository layer
2013-02-13 09:37:42 +08:00
Mic
23314c5428
moved all model classes to a dedicated 'model' package
2013-02-13 08:06:37 +08:00
Mic
cd88b8caae
Javadoc and xml documentation improvements
2013-02-12 09:12:51 +08:00
Mic
5699bf83ee
cleaned up AOP usage
2013-02-08 12:46:00 +08:00
Mic
f44e383462
fixed lazy loading issues
...
also renamed some local variables in Unit tests
2013-01-30 11:20:22 +08:00
Mic
3482d549ea
renamed profiles and removed unnecessary@DirtiesContext annotation so the Test suite now runs in 40% less time
2013-01-29 17:47:45 +08:00
Mic
d88b565d28
migrated all dates to joda time
2013-01-19 02:53:27 +08:00
Mic
97aba3f4e6
added a Spring Data implementation
...
- there are now 3 data access implementations (jdbc, jpa and
spring-data-jpa)
- added corresponding bean profiles
- JUnit tests are now successful
2013-01-18 16:56:01 +08:00
Mic
c9c8c4e085
moved the ClinicRepository into some separate repos
...
There is still some polish up to be done.
2013-01-17 15:27:27 +08:00
Mic
0fe479390b
improvements to Owner Controller
...
- migrated to bean validation annotations
- merged to one single controller
2013-01-16 10:30:20 +08:00
Mic
5432a1932c
started adding support for Spring Data
2013-01-15 17:31:01 +08:00
Mic
0c2665f1b4
added bean profiles for jdbc/jpa
2013-01-14 23:36:06 +08:00
Mic
b459ca3377
added aspectj decaration. All JUnit tests are now successful
2013-01-14 23:23:07 +08:00