// Path: examples/simple-client/src/main/java/info/developerblog/examples/thirft/simpleclient/AsyncGreetingService.java
// @Service
// public class AsyncGreetingService {
// 
//     @ThriftClient(serviceId = "greeting-service", path = "/api")
//     TGreetingService.Client client;
// 
//     @Async
//     public Future<String> getGreeting(String lastName, String firstName) throws TException {
//         return new AsyncResult<>(client.greet(new TName(firstName, lastName)));
//     }
// }
// 
// Path: examples/simple-client/src/main/java/info/developerblog/examples/thirft/simpleclient/SimpleClientApplication.java
// @EnableAsync
// @SpringBootApplication
// public class SimpleClientApplication {
// 
//     public static void main(String[] args) {
//         SpringApplication.run(SimpleClientApplication.class, args);
//     }
// 
//     @ThriftClient(serviceId = "greeting-service", path = "/api")
//     TGreetingService.Client client;
// }


import info.developerblog.examples.thirft.simpleclient.AsyncGreetingService;
import info.developerblog.examples.thirft.simpleclient.SimpleClientApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
package info.developerblog.examples.thirft.proxyclient.async;



@RunWith(SpringRunner.class)
@SpringBootTest(classes = SimpleClientApplication.class, webEnvironment = RANDOM_PORT)
public class TAsyncGreetingServiceHandlerTests {

    @Autowired
// Path: examples/simple-client/src/main/java/info/developerblog/examples/thirft/simpleclient/AsyncGreetingService.java
// @Service
// public class AsyncGreetingService {
// 
//     @ThriftClient(serviceId = "greeting-service", path = "/api")
//     TGreetingService.Client client;
// 
//     @Async
//     public Future<String> getGreeting(String lastName, String firstName) throws TException {
//         return new AsyncResult<>(client.greet(new TName(firstName, lastName)));
//     }
// }
// 
// Path: examples/simple-client/src/main/java/info/developerblog/examples/thirft/simpleclient/SimpleClientApplication.java
// @EnableAsync
// @SpringBootApplication
// public class SimpleClientApplication {
// 
//     public static void main(String[] args) {
//         SpringApplication.run(SimpleClientApplication.class, args);
//     }
// 
//     @ThriftClient(serviceId = "greeting-service", path = "/api")
//     TGreetingService.Client client;
// }


// Path: examples/simple-client/src/test/java/info/developerblog/examples/thirft/proxyclient/async/TAsyncGreetingServiceHandlerTests.java
import info.developerblog.examples.thirft.simpleclient.AsyncGreetingService;
import info.developerblog.examples.thirft.simpleclient.SimpleClientApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;

package info.developerblog.examples.thirft.proxyclient.async;



@RunWith(SpringRunner.class)
@SpringBootTest(classes = SimpleClientApplication.class, webEnvironment = RANDOM_PORT)
public class TAsyncGreetingServiceHandlerTests {

    @Autowired
    private AsyncGreetingService asyncGreetingService;