Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
d9828a0a
Commit
d9828a0a
authored
Nov 26, 2017
by
Johnny Lim
Committed by
Stephane Nicoll
Nov 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-11143
parent
ac22225b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
17 deletions
+16
-17
CouchbaseReactiveRepositoriesAutoConfigurationTests.java
.../CouchbaseReactiveRepositoriesAutoConfigurationTests.java
+1
-1
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+6
-6
pom.xml
...rters/spring-boot-starter-data-couchbase-reactive/pom.xml
+1
-1
WebFluxTest.java
...ork/boot/test/autoconfigure/web/reactive/WebFluxTest.java
+1
-1
WebMvcTest.java
...ework/boot/test/autoconfigure/web/servlet/WebMvcTest.java
+1
-1
ExampleController2.java
...oconfigure/web/reactive/webclient/ExampleController2.java
+1
-1
ExampleIdConverter.java
...oconfigure/web/reactive/webclient/ExampleIdConverter.java
+1
-2
ExampleController2.java
...autoconfigure/web/servlet/mockmvc/ExampleController2.java
+2
-2
ExampleId.java
...oot/test/autoconfigure/web/servlet/mockmvc/ExampleId.java
+2
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseReactiveRepositoriesAutoConfigurationTests.java
View file @
d9828a0a
...
...
@@ -80,7 +80,7 @@ public class CouchbaseReactiveRepositoriesAutoConfigurationTests {
@Test
public
void
doesNotTriggerDefaultRepositoryDetectionIfCustomized
()
{
load
(
C
ouchbaseReactiveRepositoriesAutoConfigurationTests
.
C
ustomizedConfiguration
.
class
);
load
(
CustomizedConfiguration
.
class
);
assertThat
(
this
.
context
.
getBeansOfType
(
ReactiveCityCouchbaseRepository
.
class
))
.
isEmpty
();
}
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
d9828a0a
...
...
@@ -4568,7 +4568,7 @@ This sample configuration reuses the `Cluster` that was created via auto-configu
If Redis is available and configured, a `RedisCacheManager` is auto-configured. It is
possible to create additional caches on startup by setting the
`spring.cache.cache-names` property and cache defaults can be configured using
`spring.
redis.cache
.*` properties. For instance, the following configuration creates
`spring.
cache.redis
.*` properties. For instance, the following configuration creates
`cache1` and `cache2` caches with a _time to live_ of 10 minutes:
[source,properties,indent=0]
...
...
@@ -6017,7 +6017,7 @@ A list of the auto-configuration that is enabled by `@JsonTest` can be
==== Auto-configured Spring MVC Tests
To test Spring MVC controllers are working as expected, you can use the `@WebMvcTest`
annotation. `@WebMvcTest` auto-configures the Spring MVC infrastructure and limits
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `
@
Converter`,
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `
Converter`, `Generic
Converter`,
`Filter`, `WebMvcConfigurer`, and `HandlerMethodArgumentResolver`. Regular `@Component`
beans are not scanned when using this annotation.
...
...
@@ -6124,7 +6124,7 @@ A list of the auto-configuration settings that are enabled by `@WebMvcTest` can
To test that Spring WebFlux controllers are working as expected, you can use the
`@WebFluxTest` annotation. `@WebFluxTest` auto-configures the Spring WebFlux
infrastructure and limits scanned beans to `@Controller`, `@ControllerAdvice`,
`@JsonComponent`, `Converter`, and `WebFluxConfigurer`. Regular `@Component` beans are
`@JsonComponent`, `Converter`,
`GenericConverter`,
and `WebFluxConfigurer`. Regular `@Component` beans are
not scanned when the `@WebFluxTest` annotation is used.
TIP: If you need to register extra components such as Jackson `Module`, you can import
...
...
spring-boot-project/spring-boot-starters/spring-boot-starter-data-couchbase-reactive/pom.xml
View file @
d9828a0a
...
...
@@ -3,8 +3,8 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
spring-boot-starters
</artifactId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starters
</artifactId>
<version>
${revision}
</version>
</parent>
<artifactId>
spring-boot-starter-data-couchbase-reactive
</artifactId>
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/reactive/WebFluxTest.java
View file @
d9828a0a
...
...
@@ -43,7 +43,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
* <p>
* Using this annotation will disable full auto-configuration and instead apply only
* configuration relevant to WebFlux tests (i.e. {@code @Controller},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, and
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}
/{@code GenericConverter}
, and
* {@code WebFluxConfigurer} beans but not {@code @Component}, {@code @Service} or
* {@code @Repository} beans).
* <p>
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTest.java
View file @
d9828a0a
...
...
@@ -43,7 +43,7 @@ import org.springframework.test.web.servlet.MockMvc;
* <p>
* Using this annotation will disable full auto-configuration and instead apply only
* configuration relevant to MVC tests (i.e. {@code @Controller},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, {@code Filter},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}
/{@code GenericConverter}
, {@code Filter},
* {@code WebMvcConfigurer} and {@code HandlerMethodArgumentResolver} beans but not
* {@code @Component}, {@code @Service} or {@code @Repository} beans).
* <p>
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/ExampleController2.java
View file @
d9828a0a
...
...
@@ -38,7 +38,7 @@ public class ExampleController2 {
}
@GetMapping
(
"/two/{id}"
)
public
Mono
<
String
>
one
(
@PathVariable
ExampleId
id
)
{
public
Mono
<
String
>
two
(
@PathVariable
ExampleId
id
)
{
return
Mono
.
just
(
id
.
getId
()
+
"two"
);
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/ExampleIdConverter.java
View file @
d9828a0a
...
...
@@ -22,13 +22,12 @@ import java.util.UUID;
import
org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest
;
import
org.springframework.core.convert.TypeDescriptor
;
import
org.springframework.core.convert.converter.Converter
;
import
org.springframework.core.convert.converter.GenericConverter
;
import
org.springframework.lang.Nullable
;
import
org.springframework.stereotype.Component
;
/**
* Example {@link Converter} used with {@link WebFluxTest} tests.
* Example {@link
Generic
Converter} used with {@link WebFluxTest} tests.
*
* @author Stephane Nicoll
*/
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/ExampleController2.java
View file @
d9828a0a
...
...
@@ -32,13 +32,13 @@ public class ExampleController2 {
@GetMapping
(
"/two"
)
@ResponseBody
public
String
one
(
ExampleArgument
argument
)
{
public
String
two
(
ExampleArgument
argument
)
{
return
argument
+
"two"
;
}
@GetMapping
(
"/two/{id}"
)
@ResponseBody
public
String
one
(
@PathVariable
ExampleId
id
)
{
public
String
two
(
@PathVariable
ExampleId
id
)
{
return
id
.
getId
()
+
"two"
;
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/ExampleId.java
View file @
d9828a0a
...
...
@@ -18,10 +18,10 @@ package org.springframework.boot.test.autoconfigure.web.servlet.mockmvc;
import
java.util.UUID
;
import
org.springframework.core.convert.converter.Converter
;
import
org.springframework.core.convert.converter.
Generic
Converter
;
/**
* An example attribute that requires a {@link Converter}.
* An example attribute that requires a {@link
Generic
Converter}.
*
* @author Stephane Nicoll
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment