Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
836 rajveer 1
package in.shop2020.thrift.clients;
2
 
3
import in.shop2020.thrift.clients.TestClient;
4
 
5
 
6
public class TestOfTestServer {
7
 
8
	public static void main(String [] args) throws Exception{
9
		int count = 1;
10
		while(true){
11
			TestClient testClient = new TestClient();
12
			//testClient.getClient().createUser("Rajveer");
13
			String user = testClient.getClient().getUser(count++);
14
			System.out.println("Wait start" + user);
15
			Thread.sleep(500);
16
			System.out.println("Wait over");
17
			//testClient.closeConnection();
18
		}
19
		/*
20
		testClient.getClient().sayHello("Hello Rajveer");
21
		System.out.println("Wait start");
22
		Thread.sleep(120000);
23
		System.out.println("Wait over");
24
		// testClient.closeConnection();
25
 
26
		System.out.println("Wait after session close");
27
		Thread.sleep(10000);
28
		System.out.println("Wait over 2");
29
		//TestClient testClient1 = new TestClient();
30
		//testClient1.getClient().sayHello("Hello Rajveer 1");
31
		//testClient.closeConnection();
32
		*/
33
	}
34
}