This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push: new bc6afcb [SCB-1953] tiny code improve bc6afcb is described below commit bc6afcbc84784e5eb20b46dba6fcc72d4447b30f Author: wujimin <wuji...@huawei.com> AuthorDate: Fri May 29 08:37:34 2020 +0800 [SCB-1953] tiny code improve --- .../java/org/apache/servicecomb/demo/perf/Wjm.java | 25 ---------------------- .../servicecomb/it/testcase/TestDefaultValue.java | 3 +-- .../servicecomb/it/testcase/TestDownload.java | 6 ------ .../tracing/ZipkinTracingIntegrationTest.java | 1 - 4 files changed, 1 insertion(+), 34 deletions(-) diff --git a/demo/perf/src/main/java/org/apache/servicecomb/demo/perf/Wjm.java b/demo/perf/src/main/java/org/apache/servicecomb/demo/perf/Wjm.java deleted file mode 100644 index 2715590..0000000 --- a/demo/perf/src/main/java/org/apache/servicecomb/demo/perf/Wjm.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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. - */ -package org.apache.servicecomb.demo.perf; - -import java.util.Date; - -public class Wjm { - public Wjm() { - System.out.println("wjm:" + new Date()); - } -} diff --git a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java index 1f39a6f..84e74e8 100644 --- a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java +++ b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java @@ -501,7 +501,6 @@ public class TestDefaultValue { assertEquals(defaultFloat, consumersSpringmvc.getIntf().floatHeaderRequire(null), 0.0f); } - @Test public void floatHeader_require_springmvc_rt() { assertEquals(defaultFloat, @@ -523,7 +522,7 @@ public class TestDefaultValue { public void stringHeader_springmvc_cart() { HttpHeaders headers = new HttpHeaders(); headers.add("input", "setHeader"); - HttpEntity<String> requestEntity = new HttpEntity<String>(null, headers); + HttpEntity<String> requestEntity = new HttpEntity<>(null, headers); assertNotEquals(defaultStr, consumersSpringmvc.getCseAsyncRestTemplate() .exchange("/stringHeader", HttpMethod.GET, requestEntity, String.class)); diff --git a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java index a23a658..0c10ef2 100644 --- a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java +++ b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java @@ -114,12 +114,6 @@ public class TestDownload { return response.getBody(); } -// @Test -// public void wjm() { -// ITJUnitUtils.initForDebug("it-producer", "rest"); -// checkFuture(templateGet("bytes").saveAsString()); -// } - @Test @SuppressWarnings("unchecked") public void runRest() { diff --git a/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java b/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java index 3aa6028..9cddb31 100644 --- a/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java +++ b/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java @@ -23,7 +23,6 @@ import static org.junit.Assert.assertThat; import static org.springframework.http.HttpStatus.OK; import java.util.Collection; -import java.util.concurrent.TimeUnit; import org.junit.Before; import org.junit.Test;