Phillip Webb
2c7dd9f519
Polish
2017-06-02 16:00:39 -07:00
Andy Wilkinson
d5438c299c
Polish "Use try-with-resources to close resources automatically"
...
- Apply code formatting
- Use try-with-resources in many other places that were missed in the
pull request
Closes gh-8045
2017-05-23 19:38:48 +01:00
Phillip Webb
889d43ddc4
Refine SpringApplication source types
...
Update `SpringApplication` so that the `run` methods and constructors
now require `Class<?>` arguments, rather than `Objects`. String based
sources can still be loaded, but must now be set on the `getSources()`
collections. `Package` and `Resource` types are no longer directly
supported.
This change should help IDEs offer better content assist, and will
help integrations with alternative languages such as Ceylon.
Users currently passing in Class references or using the
`spring.main.sources` property should not be affected by this change. If
an XML resource is being used, some refactoring may be required (see the
changes to `SampleSpringXmlApplication` in this commit).
Fixes gh-9170
2017-05-15 20:35:29 -07:00
Andy Wilkinson
329a950bd8
Remove testing support from the CLI
...
The testing support in the CLI has proven to be more trouble than
it's worth. Our recommendation is that, once an app gets to the stage
of requiring a test suite, it should be converted to a Maven or
Gradle project. This makes it easy to version, publish, deploy etc
using the vast ecosystems of the two build systems.
As part of this change, the dependency management for Spock has been
moved into spring-boot-parent, thereby making it "private". This
allows it to continue to manage the test-only Spock dependency in
spring-boot-test without also managing the version of Spring that is
used by a user's application.
Closes gh-9087
Fixes gh-9043
2017-05-04 09:35:29 +01:00
Andy Wilkinson
acda8e647b
Update CLI's tests following introduction of spring-jcl module
...
The new spring-jcl module is now a dependency of spring-core. This
commit updates the CLI's dependency resolution-related tests to
account for the new dependency.
2017-05-04 09:29:22 +01:00
Phillip Webb
81fef71fcb
Merge branch '1.5.x'
2017-04-19 22:48:46 -07:00
Phillip Webb
bddc190848
Suppress "resolving dependencies" when --quiet
...
Update Spring CLI so that the "resolving dependencies" message is
suppressed when `run --quiet` is used.
Fixes gh-8946
2017-04-19 22:18:12 -07:00
Andy Wilkinson
f0c5372642
Align with Spring Framework 5's new Commons Logging adapter
...
Closes gh-8825
2017-04-06 13:22:53 +01:00
Phillip Webb
d8f827d224
Cleanup and format code
2017-03-06 17:08:09 -08:00
Phillip Webb
425dbc3e52
Update copyright header for edited files
2017-03-06 15:04:07 -08:00
Phillip Webb
a4bcd20b64
Merge branch '1.5.x'
2017-02-27 20:43:18 -08:00
Phillip Webb
ca1540cefe
Update header copyright for changed files
2017-02-27 20:41:18 -08:00
Phillip Webb
77f9bb09ca
Further Polish Mockito 2 support
...
See gh-7770
2017-01-05 14:29:29 -08:00
Phillip Webb
0cc313f224
Polish
2017-01-05 11:30:33 -08:00
Stephane Nicoll
c28ff4314c
Upgrade to Mockito 2
...
Closes gh-7770
2017-01-05 12:22:15 +01:00
Phillip Webb
4bfecc1307
Merge branch '1.5.x'
2017-01-04 23:52:40 -08:00
Phillip Webb
cc7c2ebb87
Migrate to android-json
...
Migrate from `org.json:json` to the clean room Apache 2.0 licensed
version that was developed for Android.
Fixes gh-5929
2017-01-04 23:00:06 -08:00
Phillip Webb
53f1df86a2
Merge branch '1.5.x'
2016-12-30 12:17:28 -08:00
Phillip Webb
aacf5d660f
Update copyright year for changed files
2016-12-30 11:53:51 -08:00
Phillip Webb
1f417997f3
Merge branch '1.5.x'
2016-12-19 13:21:18 -08:00
Phillip Webb
6121208cbb
Polish formatting
2016-12-19 12:47:03 -08:00
Phillip Webb
4b9cba351b
Merge branch '1.4.x' into 1.5.x
2016-12-19 12:36:57 -08:00
Phillip Webb
bd74c3d327
Polish formatting
2016-12-19 12:25:09 -08:00
Andy Wilkinson
4edab86ba2
Merge branch '1.5.x'
2016-11-16 09:13:32 +00:00
Andy Wilkinson
387a406aad
Merge branch '1.4.x' into 1.5.x
2016-11-16 09:13:17 +00:00
Andy Wilkinson
b3e0a37197
Remove unwanted System.out calls in test code
2016-11-16 09:12:13 +00:00
Andy Wilkinson
9a70a4e261
Merge branch '1.5.x'
2016-11-08 14:43:05 +00:00
Andy Wilkinson
d7ef48a9b6
Merge branch '1.4.x' into 1.5.x
2016-11-08 14:43:00 +00:00
Andy Wilkinson
2c4f39045f
Stop relying on Artemis's on-demand queue creation in CLI JMS test
...
Artemis's on-demand queue cretaion appears to be rather flakey,
sometimes failing with a NullPointerException.
This commit ensures that the queue used by the sample is created
during start up rather than on demand. This will hopefully make the
test that runs the sample more robust.
Closes gh-7346
2016-11-08 14:36:58 +00:00
Andy Wilkinson
becf225911
Simplify CLI integration auto-config test by removing use of Artemis
...
Artemis seems to be a bit flakey which is causing sporadic build
failures, for example due to an NPE in Artemis' code.
2016-11-04 20:58:14 +00:00
Andy Wilkinson
4486d2d209
Upgrade to Reactor 3.0 and start building against SI 5.0 snapshots
...
Closes gh-7301
See gh-7029
2016-11-03 20:49:02 +00:00
Dave Syer
13a02a6e55
Merge branch '1.5.x'
2016-10-28 10:33:06 +01:00
Dave Syer
f62abade90
Make DependencyResolutionContext empty by default
...
It's more useful as a building block for other tools that way,
and it's easy to add the spring boot dependencies using public
methods.
2016-10-28 10:32:20 +01:00
Stephane Nicoll
264d8442da
Fix build
2016-10-11 18:33:54 +02:00
Stephane Nicoll
c5cc626d48
Remove remote shell support
...
See gh-7044
2016-10-11 17:59:25 +02:00
Andy Wilkinson
1bb5dc205d
Update samples to use Artemis in place of HornetQ
...
Closes gh-7057
2016-09-29 11:52:09 +01:00
Andy Wilkinson
472117299e
Add some integration tests for the CLI’s quiet mode
...
See gh-6918
2016-09-18 10:56:18 +01:00
Andy Wilkinson
270530c4fd
Fix class loading problems when CLI extensions are installed
...
Previously, CLI extensions where installed into the CLI's lib
directory which meant that they were on the class path of the app
class loader. Following the change to an executable jar's packaging,
this meant that they could not see classes in the CLI and a
ClassNotFoundException would result.
This commit updates the CLI to install extensions into lib/ext and
load commands using a new ClassLoader that has all of the jars in
lib/ext on its class path and that uses the launch class loader as
its parent.
Closes gh-6615
2016-08-11 16:01:18 +01:00
Phillip Webb
99c6194e17
Don't use MockitoJUnitRunner
...
Replace `@RunWith(MockitoJUnitRunner.class)` with direct Mockito
initialization since the running doesn't support parallel test
execution.
2016-06-09 20:55:59 -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
89b7704977
Extract spring-boot-test.jar
...
Relocate the `org.springframework.boot.test` package from the
`spring-boot.jar` to `spring-boot-test.jar`.
Fixes gh-5184
2016-02-19 19:28:37 -08:00
Phillip Webb
962a598531
Use AssertJ in spring-boot-cli
...
See gh-5083
2016-02-06 15:51:26 -08:00
Phillip Webb
0489a3b4de
Polish
2015-12-10 19:43:29 +00:00
Andy Wilkinson
2efc4b8332
Add tests to verify improved exception message formatting
2015-12-07 13:25:12 +00:00
Johnny Lim
1e4f8fdd8e
Polish
2015-11-13 18:06:31 -08:00
Matt Benson
5e7376fb3c
Interpolate property values for repositories
...
Update RepositoryConfigurationFactory to apply a RegexBasedInterpolator
to repository IDs and URLs.
Fixes gh-4318
Closes gh-4319
2015-11-11 14:41:28 -08: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