Phillip Webb
8843c11a28
Update copyright header of changed files
7 years ago
Andy Wilkinson
9d28238598
Update formatting of spring-boot-samples
7 years ago
Andy Wilkinson
ede197fa55
Polish formatting
...
Fix formatting issues, primarily around header comments.
7 years ago
Andy Wilkinson
8f1be4cded
Upgrade to spring-javaformat 0.0.11
7 years ago
Phillip Webb
f12ab1ff90
Update copyright header of changed files
7 years ago
Andy Wilkinson
0e009ef047
Use HTTPS to link to the Apache license
7 years ago
Phillip Webb
4853477081
Reformat code
8 years ago
Phillip Webb
a8f366a554
Fix copyright header for edited files
8 years ago
Phillip Webb
cd5266ac03
Polish
8 years ago
Phillip Webb
798522d890
Format with Eclipse Oxygen SR2
8 years ago
Andy Wilkinson
76a450dfba
Format with Eclipse Oxygen SR2
8 years ago
Madhura Bhave
dc7b3f6d6e
Update samples to use new generator mappings
...
Closes gh-7612
9 years ago
Phillip Webb
45dd9f7144
Polish
9 years ago
Madhura Bhave
bc1ee76b55
Change default for new_generator_mappings to true
...
Closes gh-7612
9 years ago
Phillip Webb
06558675bb
Polish
9 years ago
Andy Wilkinson
a9a31107cf
Align with API changes in latest Spring Data Kay snapshots
...
See gh-7461
9 years ago
Phillip Webb
b398b3319c
Rename @SpringApplicationTest -> @SpringBootTest
...
Rename @SpringApplicationTest to SpringBootTest and
@SpringApplicationContextLoader to @SpringBootContextLoader .
Fixes gh-5562
10 years ago
Phillip Webb
4d404b214c
Migrate away from @SpringApplicationConfiguration
...
Refactor internal tests to no longer use @SpringApplicationConfiguration
See gh-5562
10 years ago
Phillip Webb
c28f552883
Migrate SpringJUnit4ClassRunner to SpringRunner
...
Replace all existing SpringJUnit4ClassRunner references with the new
SpringRunner alias.
Fixes gh-5292
10 years ago
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
10 years ago
Andy Wilkinson
44ddfcc7fa
Upgrade copyright headers of all files changed in 2016
10 years ago
Phillip Webb
1cc1fc6431
Use AssertJ in spring-boot-samples
...
See gh-5083
10 years ago
Johnny Lim
8ec00c35bf
Polish
...
Closes gh-4572
11 years ago
Phillip Webb
634bb770b2
Organize imports with new settings
...
See gh-4234
11 years ago
Phillip Webb
a79131f8d2
Organize imports with new settings
...
See gh-4234
11 years ago
Phillip Webb
2615990ffb
Organize imports
11 years ago
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
11 years ago
Andy Wilkinson
0bb0f32c88
Reinstate code in Data REST sample that went AWOL in 1ce617f1
11 years ago
Phillip Webb
1ce617f1ae
Polish sample package names
11 years ago
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
11 years ago
Andy Wilkinson
a85e02fbb9
Update to Spring Data Evans SR1
...
Closes gh-1709
12 years ago
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
12 years ago
Andy Wilkinson
61e90f5b6e
Add tests to Data REST sample for search operations
...
Closes gh-1627
12 years ago
Phillip Webb
fa88c481a5
Remote trailing whitespace
12 years ago
Phillip Webb
468728a2c0
Polish
12 years ago
Dave Syer
2845b101a1
Add spring-data-rest sample
12 years ago