Skip to content

Commit 7805d96

Browse files
author
Alexander Furer
committed
fix errorprone errors
1 parent cde2fcf commit 7805d96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/MetricWithSecurityTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import io.micrometer.prometheus.PrometheusConfig;
1313
import org.awaitility.Awaitility;
1414
import org.hamcrest.Matchers;
15+
import org.junit.Ignore;
1516
import org.junit.Test;
1617
import org.junit.runner.RunWith;
1718
import org.lognet.springboot.grpc.demo.DemoApp;
@@ -98,8 +99,8 @@ public boolean supports(Class<?> authentication) {
9899

99100
}
100101

101-
// @Test
102-
public void validationShouldInvokedBeforeAuthTest() {
102+
@Test
103+
public void validationShouldInvokedBeforeAuthTest() {
103104
final GreeterGrpc.GreeterBlockingStub stub = GreeterGrpc.newBlockingStub(super.getChannel());
104105
StatusRuntimeException e = assertThrows(StatusRuntimeException.class, () -> {
105106
stub.helloPersonValidResponse(GreeterOuterClass.Person.newBuilder()
@@ -114,7 +115,7 @@ public void validationShouldInvokedBeforeAuthTest() {
114115
}
115116

116117
@Override
117-
public void simpleGreeting() throws ExecutionException, InterruptedException {
118+
public void simpleGreeting() throws Exception {
118119
AuthCallCredentials callCredentials = new AuthCallCredentials(
119120
AuthHeader.builder().basic("user","pwd".getBytes())
120121
);

0 commit comments

Comments
 (0)