Commit graph

84 commits

Author SHA1 Message Date
Antoine Rey
864580702f Remove unused properties 2016-08-23 19:45:00 +02:00
Antoine Rey
620141da5d Convert Controler's integration test to unit test 2016-08-19 18:29:53 +02:00
Antoine Rey
1080006218 Merging AbstractClinicServiceTests and ClinicServiceSpringDataJpaTests then using the Spring Boot @DataJpaTest annotation 2016-08-19 18:29:17 +02:00
Antoine Rey
2637f65b90 Upgrade to Spring Boot 1.4.0 2016-08-17 18:31:38 +02:00
Dapeng
077f4eb105 simplify content negotiation setup
- remove custom xml view, use springboot builtin xml view
- remove oxm maven dependency
- remove json-simple maven dependency (seems not relevant anymore)
- update vetsXml test using xpath
2016-06-28 11:05:42 +08:00
Antoine Rey
4da41dbbda #164 Disable cache configuration for unit tests 2016-06-24 21:18:38 +02:00
Antoine Rey
a6e81a51a0 #164 Spring Boot version of Petclinic ready to deploy to an external web container (ie Tomcat) 2016-06-23 19:42:02 +02:00
Attilio
ca755be44a Improvements in VisitRepository.findByPetId implementation.
- In the Jdbc implementation: pets belonging to a visit were not added.
- In the Jpa implementation: query variable was wrong.
- Test case: AbstractClinicServiceTests.shouldFindVisitsByPetId()
2016-06-15 22:46:47 +02:00
Faisal Hameed
ad3d322fc6 Fising squid:S2970, squid:S1192, squid:S1488, squid:UselessParenthesesCheck 2016-05-13 14:59:46 +05:00
Antoine Rey
2398c4d798 Merge pull request #119 from colinbut/master
Added test classes for Controllers plus tests for PetTypeFormatter
2016-01-30 14:26:26 +01:00
Antoine Rey
c65cfb6c11 moving from Webjars to Bower #83: renaming bower_components to vendor, update readme.md 2016-01-30 14:00:12 +01:00
IHABRITANE
540d31ed21 moving from Webjars to Bower #83 2016-01-25 17:22:41 +00:00
Colin But
845d31e8ed Added test class for Controllers plus a test for PetTypeFormatter 2015-11-20 13:56:44 +00:00
Antoine Rey
92de6557e1 Fix #111 For pet's birthday we are now using jodatime LocalDate instead of DateTime 2015-10-28 08:57:42 +01:00
Antoine Rey
6a94d7e60a Remove uncessary _method=put parameter and enable the "POST new visit" HTTP request 2015-10-21 08:25:07 +02:00
Antoine Rey
5e11b4bbcc JMeter script from Julien Dubois 2015-10-20 18:59:55 +02:00
Antoine Rey
09ed33a5fc #96 Reformat code with EditorConfig 2015-10-16 09:33:28 +02:00
Antoine Rey
4bb829cbd1 Fix #101 display the pet type when using the JDBC profile 2015-10-13 18:41:18 +02:00
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
993257f5a8 We're now able to use Spring Data there
see: https://jira.springsource.org/browse/DATAJPA-292
2013-04-18 10:10:16 +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