Skip to content

Commit 09a67c0

Browse files
author
Alexander Furer
committed
test case for #210
1 parent 0254d66 commit 09a67c0

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package org.lognet.springboot.grpc.empty;
2+
3+
4+
import org.springframework.boot.SpringApplication;
5+
import org.springframework.boot.autoconfigure.SpringBootApplication;
6+
7+
/**
8+
* Created by alexf on 28-Jan-16.
9+
*/
10+
@SpringBootApplication
11+
public class EmptyDemoApp {
12+
13+
14+
15+
public static void main(String[] args) {
16+
SpringApplication.run(EmptyDemoApp.class,args);
17+
}
18+
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.lognet.springboot.grpc.empty;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.context.junit4.SpringRunner;
7+
8+
@RunWith(SpringRunner.class)
9+
@SpringBootTest(classes = {EmptyDemoApp.class})
10+
public class NoGrpcServicesAppTest {
11+
@Test
12+
public void contextLoads() {
13+
14+
}
15+
}

grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/autoconfigure/GRpcAutoConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ public GRpcServerRunner grpcServerRunner(@Qualifier("grpcInternalConfigurator")
5252

5353

5454
@Bean
55-
//@ConditionalOnExpression("#{environment.getProperty('grpc.inProcessServerName','')!=''}")
5655
@ConditionalOnProperty(prefix = "grpc", name = "inProcessServerName")
5756
public GRpcServerRunner grpcInprocessServerRunner(@Qualifier("grpcInternalConfigurator") Consumer<ServerBuilder<?>> configurator) {
58-
5957
return new GRpcServerRunner(configurator, InProcessServerBuilder.forName(grpcServerProperties.getInProcessServerName()));
6058
}
6159

0 commit comments

Comments
 (0)