Stephane Nicoll
e560b7f6ba
Remove public modifier on JUnit5 lifecycle methods
...
See gh-17292
2019-06-21 18:09:05 +02:00
Andy Wilkinson
aef92b9295
Merge branch '2.1.x'
...
Closes gh-17079
2019-06-07 11:00:44 +01:00
Andy Wilkinson
24925c3dae
Merge branch '2.0.x' into 2.1.x
...
Closes gh-17078
2019-06-07 10:50:34 +01:00
Madhura Bhave
1db1c8b03c
Validate our own tests work with JUnit5 and the vintage engine
...
Closes gh-14737
Co-authored-by: Stephane Nicoll <snicoll@pivotal.io >
2019-05-08 16:05:44 +02:00
Phillip Webb
f12ab1ff90
Update copyright header of changed files
2019-04-03 16:13:00 -07:00
Phillip Webb
f875b74e67
Reformat samples with spring-javaformat 0.0.8
...
See gh-16418
2019-04-02 19:39:23 -07:00
Andy Wilkinson
9fbd38ab3c
Merge branch '1.5.x' into 2.0.x
2019-03-20 16:45:26 +00:00
Andy Wilkinson
4b6bddd476
Merge branch '1.4.x' into 1.5.x
2019-03-20 16:30:04 +00:00
Andy Wilkinson
6920c39349
Merge branch '1.3.x' into 1.4.x
2019-03-20 15:06:50 +00:00
Andy Wilkinson
0e009ef047
Use HTTPS to link to the Apache license
2019-03-20 15:00:10 +00:00
Phillip Webb
21d80d87a3
Merge branch '1.5.x' into 2.0.x
2018-05-25 18:45:37 -07:00
Phillip Webb
e69296d7d3
Fix checkstyle violations in samples
2018-05-25 18:18:00 -07:00
Phillip Webb
4853477081
Reformat code
2018-05-25 18:17:37 -07:00
Phillip Webb
a8f366a554
Fix copyright header for edited files
2018-03-16 15:07:23 -07:00
Phillip Webb
cd5266ac03
Polish
2018-02-22 20:25:28 -08:00
Phillip Webb
798522d890
Format with Eclipse Oxygen SR2
2018-02-08 15:46:49 -08:00
Andy Wilkinson
76a450dfba
Format with Eclipse Oxygen SR2
2018-02-08 10:53:53 +00:00
Phillip Webb
adfb6dc128
Polish
2018-01-25 13:20:29 -08:00
Madhura Bhave
d65f9b25bc
Remove redundant throws Exception
2018-01-25 17:25:38 +05:30
Johnny Lim
1783a072ad
Remove explicit constructor super() calls
...
Closes gh-11068
2017-11-17 16:44:16 -08:00
Phillip Webb
c55b5d7111
Polish
2017-11-01 23:14:52 -07:00
Phillip Webb
302f038e84
Polish
2017-05-15 20:35:29 -07:00
Madhura Bhave
dc7b3f6d6e
Update samples to use new generator mappings
...
Closes gh-7612
2017-05-12 11:35:42 -07:00
Phillip Webb
45dd9f7144
Polish
2017-04-27 12:04:02 -07:00
Madhura Bhave
bc1ee76b55
Change default for new_generator_mappings to true
...
Closes gh-7612
2017-04-25 12:09:36 -07:00
Phillip Webb
06558675bb
Polish
2017-04-25 09:45:14 -07:00
Andy Wilkinson
a9a31107cf
Align with API changes in latest Spring Data Kay snapshots
...
See gh-7461
2017-03-24 11:26:27 +00:00
Andy Wilkinson
1947b92481
Avoid exception from dropping non-existent constraint in Data REST sample
...
Hibernate 5.1 logs an ugly but benign exception when using an in-memory
HSQL database when it tries to drop a non-existent constraint.
This commit changes the Spring Data REST sample to use H2 rather than
HSQL. This prevents the unwanted exception from occurring as Hibernate's
H2 dialect returns false from dropConstraints.
2016-05-16 20:27:35 +01:00
Phillip Webb
b398b3319c
Rename @SpringApplicationTest -> @SpringBootTest
...
Rename @SpringApplicationTest to SpringBootTest and
@SpringApplicationContextLoader to @SpringBootContextLoader.
Fixes gh-5562
2016-04-04 22:36:58 -07:00
Phillip Webb
4d404b214c
Migrate away from @SpringApplicationConfiguration
...
Refactor internal tests to no longer use @SpringApplicationConfiguration
See gh-5562
2016-04-04 22:36:57 -07:00
Phillip Webb
c28f552883
Migrate SpringJUnit4ClassRunner to SpringRunner
...
Replace all existing SpringJUnit4ClassRunner references with the new
SpringRunner alias.
Fixes gh-5292
2016-03-23 22:18:18 -07:00
Phillip Webb
2f815a907a
Migrate existing tests from deprecated package
...
Update the existing tests to use the relocated `spring-boot-test`
classes. Restructuring was achieved using the following command:
find . -type f -name '*.java' -exec sed -i '' \
-e s/org.springframework.boot.test.ConfigFileApplicationContextInitializer/\
org.springframework.boot.test.context.ConfigFileApplicationContextInitializer/g \
-e s/org.springframework.boot.test.EnvironmentTestUtils/\
org.springframework.boot.test.util.EnvironmentTestUtils/g \
-e s/org.springframework.boot.test.IntegrationTest/\
org.springframework.boot.test.context.IntegrationTest/g \
-e s/org.springframework.boot.test.IntegrationTestPropertiesListener/\
org.springframework.boot.test.context.IntegrationTestPropertiesListener/g \
-e s/org.springframework.boot.test.OutputCapture/\
org.springframework.boot.test.rule.OutputCapture/g \
-e s/org.springframework.boot.test.SpringApplicationConfiguration/\
org.springframework.boot.test.context.SpringApplicationConfiguration/g \
-e s/org.springframework.boot.test.SpringApplicationContextLoader/\
org.springframework.boot.test.context.SpringApplicationContextLoader/g \
-e s/org.springframework.boot.test.SpringBootMockServletContext/\
org.springframework.boot.test.mock.web.SpringBootMockServletContext/g \
-e s/org.springframework.boot.test.TestRestTemplate/\
org.springframework.boot.test.web.client.TestRestTemplate/g \
-e s/org.springframework.boot.test.WebIntegrationTest/\
org.springframework.boot.test.context.web.WebIntegrationTest/g {} \;
See gh-5293
2016-03-23 22:17:50 -07:00
Andy Wilkinson
44ddfcc7fa
Upgrade copyright headers of all files changed in 2016
2016-02-25 12:09:42 +00:00
Phillip Webb
1cc1fc6431
Use AssertJ in spring-boot-samples
...
See gh-5083
2016-02-06 15:51:26 -08:00
Johnny Lim
8ec00c35bf
Polish
...
Closes gh-4572
2015-11-21 08:12:21 +01:00
Phillip Webb
634bb770b2
Organize imports with new settings
...
See gh-4234
2015-10-19 12:58:34 -07:00
Phillip Webb
1e4d974ec0
Merge remote-tracking branch 'local12x/1.2.x'
2015-10-19 12:56:55 -07:00
Phillip Webb
a79131f8d2
Organize imports with new settings
...
See gh-4234
2015-10-19 12:55:44 -07:00
Phillip Webb
2615990ffb
Organize imports
2015-09-08 14:40:35 -07:00
Stephane Nicoll
7c0c953f81
Add value alias for SpringApplicationConfiguration
...
Given that Spring Boot uses java config accross the board, a new `value`
attribute is now aliased to the existing `classes` attribute such that
one could write the following:
@SpringApplicationConfiguration(MyConfig.class)
public class MyTest {}
Closes gh-3635
2015-08-19 17:09:34 +02:00
Andy Wilkinson
0bb0f32c88
Reinstate code in Data REST sample that went AWOL in 1ce617f1
2015-06-23 14:44:43 +01:00
Phillip Webb
1ce617f1ae
Polish sample package names
2015-06-23 00:47:12 -07:00
Andy Wilkinson
d13878e193
Upgrade to Spring Data Fowler RELEASE
...
The versions in the dependency management for the various datastore
dependencies have been aligned with those used by Spring Data Fowler.
The Data REST tests and sample application has been updated to configure
the base path in favour of the deprecated base uri property
Closes gh-2673
2015-04-09 12:20:45 +01:00
Andy Wilkinson
cb067ee00c
Align expectations with Spring Data REST’s new behaviour in Fowler
...
The response produced by Spring Data REST to a search that will always
return a single result, i.e. the return type is Foo rather than
List<Foo> or Page<Foo> has improved in Fowler. Previously, the response
would contain a single embedded resource. In Fowler, the response now
contains the resource that used to be embedded as a top-level resource.
This commit updates the expectations in one of the sample’s tests to
match this new behaviour.
See gh-2673
2015-03-18 16:16:58 +00:00
Phillip Webb
d039f43107
Update samples to use @SpringBootApplication
...
Update the relevant samples to use the new @SpringBootApplication
annotation.
Closes gh-1842
2014-11-06 22:51:09 -08:00
Andy Wilkinson
a85e02fbb9
Update to Spring Data Evans SR1
...
Closes gh-1709
2014-11-03 11:31:58 +00:00
Andy Wilkinson
07cb8f2836
Ensure that spring.data.rest.* configuration takes effect
...
Previously, RepositoryRestMvcBootConfiguration was not annotated with
@Configuration. This meant that it was processed in lite mode.
Crucially, in lite mode, there’s no proxying so each call to the
config() @Bean method from within other @Bean methods resulted in the
creation of a new RepositoryRestConfiguration instance. Furthermore, as
each of these instances wasn’t a Spring bean the configuration
properties were not applied.
This commit updates RepositoryRestMvcBootConfiguration to annotate it
with @Configuration so that it’s no longer processed in lite mode. It
also updates the unit tests and the Spring Data REST sample to verify
that the baseUri can be configured using application.properties.
Fixes gh-1675
2014-10-09 14:29:38 +01:00
Andy Wilkinson
61e90f5b6e
Add tests to Data REST sample for search operations
...
Closes gh-1627
2014-09-30 10:29:38 +01:00
bangsen.yin
b798d001d7
Add missing @Param annotations to CityRepository in Data REST sample
...
Without the @Param annotations, using either of the search URIs would
resulted in a 400 response and an error describing the lack of @Param
annotation.
See gh-1627
2014-09-30 10:18:26 +01:00
Phillip Webb
fa88c481a5
Remote trailing whitespace
2014-07-02 15:17:14 -07:00