Stephane Nicoll
90498a0b2f
Fix broken build
9 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
Phillip Webb
a79131f8d2
Organize imports with new settings
...
See gh-4234
10 years ago
Phillip Webb
6ab376e2e8
Reformat code use Eclipse Mars
10 years ago
Phillip Webb
d09805fd75
Polish license headers
10 years ago
Stephane Nicoll
f7a1db8e25
Polish
10 years ago
Stephane Nicoll
5453f7c59c
Fix broken build
...
Commit c85f4df0ee broke the build as some tests are expecting HSQL to be
used. We now specify the name of the database rather than specifying the
jdbc url.
10 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
10 years ago
Andy Wilkinson
863c099161
Add missing copyright headers
11 years ago
Phillip Webb
96a031cf20
Default spring.datasource.jmx-enabled to false
...
Change the default value of spring.datasource.jmx-enabled to false
to prevent InstanceAlreadyExistsException problems when using the
Spring Test Framework.
Fixes gh-1590
11 years ago
Phillip Webb
a973fd41f4
Polish
11 years ago
Dave Syer
f304d46955
Add JMX MBean for Tomcat DataSource
...
If the DataSource is a Tomcat one we force it to register an MBean
if spring.jmx.enabled=true
Fixes gh-1590
11 years ago
Phillip Webb
fa88c481a5
Remote trailing whitespace
12 years ago
Phillip Webb
0160760568
Apply latest eclipse cleanup rules
12 years ago
Dave Syer
f448e79f29
Remove long package names from samples
...
Long package names are really unnecessary in samples and they
just clutter things up. Also Spring Loaded doesn't work with
org.sfw packages, so to demo that technology you need a
different package name.
12 years ago
Dave Syer
3e6c1b435f
Add @SpringApplicationConfiguration (for integration testing)
...
Example:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
public class CityRepositoryIntegrationTests {
@Autowired
CityRepository repository;
Fixes gh-66.
12 years ago
Phillip Webb
64f32893bb
Source format and clean-up
12 years ago
Phillip Webb
b772f7c2e4
Polish
...
Minor formatting and consistent copyright header.
12 years ago
Dave Syer
5fe9ef69c7
Add SpringApplicationContextLoader
12 years ago
Dave Syer
bfb843e1a0
Add logging initializer to tests
13 years ago
Oliver Gierke
d2def68602
Cleanups Spring Data JPA example.
...
Various cleanups to the Spring Data JPA example, including:
* Move repositories into service package and make them package private
thus only expose the service interfaces to clients.
* Merge HotelRepository and HotelSummaryRepository and make service
implementations package protected.
* Introduce integration test base class to bootstrap the app as
SpringAppliation.run would.
* Refactor central test case to rather use Spring MVC integration
testing framework.
* Add integration tests for repositories to execute query methods.
13 years ago
Dave Syer
68e5a7e887
Bump version to 0.5.0.M1
13 years ago
Phillip Webb
b665a2bb1d
Renamed packages
...
Issue: #54095231
13 years ago
Dave Syer
2098e23fca
Change package names zero->boot
...
* actuator -> boot-ops
* cli -> boot-cli
* launcher -> boot-load
* autoconfig -> boot-config
* bootstrap -> boot-strap
* starters -> boot-up
[#54095231 ] [bs-253] Refactor Zero->Boot
13 years ago