Skip to content

Commit

Permalink
fix errorprone errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Furer committed Jul 1, 2021
1 parent cde2fcf commit 7805d96
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import io.micrometer.prometheus.PrometheusConfig;
import org.awaitility.Awaitility;
import org.hamcrest.Matchers;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.lognet.springboot.grpc.demo.DemoApp;
Expand Down Expand Up @@ -98,8 +99,8 @@ public boolean supports(Class<?> authentication) {

}

// @Test
public void validationShouldInvokedBeforeAuthTest() {
@Test
public void validationShouldInvokedBeforeAuthTest() {
final GreeterGrpc.GreeterBlockingStub stub = GreeterGrpc.newBlockingStub(super.getChannel());
StatusRuntimeException e = assertThrows(StatusRuntimeException.class, () -> {
stub.helloPersonValidResponse(GreeterOuterClass.Person.newBuilder()
Expand All @@ -114,7 +115,7 @@ public void validationShouldInvokedBeforeAuthTest() {
}

@Override
public void simpleGreeting() throws ExecutionException, InterruptedException {
public void simpleGreeting() throws Exception {
AuthCallCredentials callCredentials = new AuthCallCredentials(
AuthHeader.builder().basic("user","pwd".getBytes())
);
Expand Down

0 comments on commit 7805d96

Please sign in to comment.