Skip to content

Commit

Permalink
fix checkstyle violations
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheong01 committed Nov 22, 2022
1 parent 922cc0f commit e47426d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

import com.linecorp.armeria.common.util.TimeoutMode;
import com.linecorp.armeria.server.annotation.DecoratorFactory;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2022 LINE Corporation
*
* LINE Corporation 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:
*
* https://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 com.linecorp.armeria.internal.server.annotation;

import static org.assertj.core.api.Assertions.assertThat;
Expand All @@ -13,7 +29,6 @@
import com.linecorp.armeria.common.HttpRequest;
import com.linecorp.armeria.common.HttpStatus;
import com.linecorp.armeria.common.RequestHeaders;
import com.linecorp.armeria.common.util.TimeoutMode;
import com.linecorp.armeria.internal.server.DefaultServiceRequestContext;
import com.linecorp.armeria.server.ServerBuilder;
import com.linecorp.armeria.server.ServiceRequestContext;
Expand All @@ -28,7 +43,6 @@ public class RequestTimeoutAnnotationTest {
@Override
protected void configure(ServerBuilder sb) throws Exception {
sb.annotatedService("/myService", new MyAnnotationService());

}
};

Expand Down Expand Up @@ -77,9 +91,9 @@ public void testRequestTimeoutSet() {
public void testCancellationSchedulerInit() {
final BlockingWebClient client = BlockingWebClient.of(server.httpUri());

final AggregatedHttpResponse response = client.execute(RequestHeaders.of(HttpMethod.GET, "/myService/timeoutMillis"));
final AggregatedHttpResponse response = client.execute(
RequestHeaders.of(HttpMethod.GET, "/myService/timeoutMillis"));
assertThat(response.status()).isEqualTo(HttpStatus.OK);
assertThat(Boolean.parseBoolean(response.contentUtf8())).isEqualTo(true);
}

}

0 comments on commit e47426d

Please sign in to comment.