Polishing

Resolves #219
This commit is contained in:
Oleg Zhurakousky
2018-10-22 14:26:52 +02:00
parent ba34d4b81b
commit af717e445d
8 changed files with 40 additions and 12 deletions

View File

@@ -1,3 +1,19 @@
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.cloud.function.web.function;
import java.lang.management.ManagementFactory;
@@ -42,7 +58,13 @@ import reactor.core.publisher.Mono;
import reactor.netty.DisposableServer;
import reactor.netty.http.server.HttpServer;
public class FunctionEndpointInitializer
/**
*
* @author Dave Syer
* @since 2.0
*
*/
class FunctionEndpointInitializer
implements ApplicationContextInitializer<GenericApplicationContext> {
@Override

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@ public class ExplicitNonFunctionalTests {
client.post().uri("/").body(Mono.just("foo"), String.class).exchange()
.expectStatus().isOk().expectBody(String.class).isEqualTo("FOO");
}
@SpringBootConfiguration
@EnableAutoConfiguration
protected static class TestConfiguration implements Function<String, String> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@ public class ImplicitNonFunctionalTests {
client.post().uri("/").body(Mono.just("foo"), String.class).exchange()
.expectStatus().isOk().expectBody(String.class).isEqualTo("FOO");
}
@SpringBootConfiguration
@EnableAutoConfiguration
protected static class TestConfiguration {