Skip to content

Commit

Permalink
Async test cases added and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
杨冠超 committed Aug 31, 2018
1 parent 459e990 commit 391f7d6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
@RestController
public class SampleRestController {

public static String ASYNC_RESP = "Hello World!";
public static String ASYNC_RESP = "Hello World!";

private static final String template = "Hello, %s!";
private static final String template = "Hello, %s!";

private final AtomicLong counter = new AtomicLong();
private final AtomicLong counter = new AtomicLong();

@RequestMapping("/greeting")
public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @author yangguanchao
* @since 2018/08/31
*/
@ActiveProfiles("json")
@ActiveProfiles("async")
public class SpringMvcAsyncTest extends AbstractTestBase {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#

spring.application.name=SpringMvcAsyncServlet

#default 60s and now reset to 1
com.alipay.sofa.tracer.statLogInterval=1

0 comments on commit 391f7d6

Please sign in to comment.