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
Stephane Nicoll
2526a54e31
Polish contribution
...
Closes gh-5337
2016-03-14 14:24:24 +01: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
Huang YunKun
1c5e445554
Update the samples to use @WebIntegrationTest and randomPort=true
...
Closes gh-4294
Closes gh-4271
2015-10-27 11:56:01 +00: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
e473364e4e
Merge branch '1.2.x'
2015-10-07 23:34:08 -07:00
Phillip Webb
6ab376e2e8
Reformat code use Eclipse Mars
2015-10-07 23:32:31 -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
Stephane Nicoll
be5e30b409
Migrate spring.view properties
...
Migrate `spring.view.prefix` and `spring.view.suffix` to
`spring.mvc.view.prefix` and `spring.mvc.view.suffix` respectively. The
former properties are still handled in a backward compatible way and are
defined as deprecated in the meta-data.
Closes gh-3250
2015-06-18 13:55:44 +02: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
Phillip Webb
fa88c481a5
Remote trailing whitespace
2014-07-02 15:17:14 -07:00
Dave Syer
b0bf9c776f
Fix logic error in ErrorPageFilter (fixes gh-1149)
2014-06-25 08:47:24 +01:00
Phillip Webb
fad5ce45db
Polish
2014-04-23 12:35:33 +01:00
Dave Syer
7b07fe8ce0
Convert remaining samples to use random port
...
Partial fix for gh-337. See also gh-607 which complements this, but might
conflict on a merge.
2014-04-17 20:29:04 -07:00
Phillip Webb
aca67066bf
Rename RestTemplates to TestRestTemplate
...
Rename the RestTemplates to TestRestTemplate to help indicate that it's
primarily intended for testing. Also now extend RestTemplate to allow
direct use, rather than via factory methods.
Fixes gh-599
2014-03-27 11:22:03 -07:00
Phillip Webb
80ac1fb0cd
Polish
2014-03-15 13:02:01 -07:00
Dave Syer
7a285cf65d
Convert all sample tests to @IntegrationTest where appropriate
...
Makes them a lot more readable IMO, and also enables @Autowiring
from the context into the test case (sweeet). I added @DirtiesContext
to all of them as well to be on the safe side, but possbly that can be
optimized in some way as well.
2014-03-11 13:54:30 +00:00
Phillip Webb
4a58171b5c
A few more package tweaks
...
Improve package structure and include package-info javadoc.
2014-02-12 13:50:37 -08:00
Phillip Webb
0160760568
Apply latest eclipse cleanup rules
2014-01-21 16:28:26 -08:00
Phillip Webb
1bcd3de7b5
Polish
2014-01-02 12:10:37 -08:00
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.
2013-12-31 08:40:26 +00:00
Dave Syer
d9e326a3d3
Add @Value injection to JSP (WAR) sample
2013-12-19 08:28:06 +00:00
Dave Syer
756b5e1b60
Convert JSP sample to deployable (executable) WAR
2013-11-27 10:17:04 +00:00
Dave Syer
3f1cfbf241
Add JSTL to JSP sample
2013-11-26 10:00:50 +00:00
Phillip Webb
64f32893bb
Source format and clean-up
2013-11-16 00:08:18 -08:00
Phillip Webb
b772f7c2e4
Polish
...
Minor formatting and consistent copyright header.
2013-10-08 20:30:45 -07:00
Phillip Webb
1bdb2ce1c2
Polish
2013-09-30 09:50:38 -07:00
Dave Syer
923f286ae2
Add spring.view.{prefix,suffix} properties
...
Fixes #62
2013-09-27 09:34:10 -04:00
Phillip Webb
f7ce153ff0
Fix JSP EL support with Tomcat
...
Fix TomcatEmbeddedServletContainerFactory to set a MERGED_WEB_XML
attribute when JSPs are used. This is required for EL support with
JSPs since Jasper checks the version number in the web.xml. Without
any web.xml Jasper default to disabling EL.
Issue: #55752948
2013-09-05 17:14:13 -07:00