Subversion Repositories SmartDukaan

Rev

Rev 1021 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1021 Rev 3429
Line 4... Line 4...
4
 
4
 
5
 
5
 
6
public class TestOfTestServer {
6
public class TestOfTestServer {
7
	
7
	
8
	public static void main(String [] args) throws Exception{
8
	public static void main(String [] args) throws Exception{
-
 
9
		
-
 
10
		TestClient testClient = new TestClient();
-
 
11
		testClient.getClient().sayHello("Hello");
-
 
12
//		
9
		int count = 1;
13
//		int count = 1;
10
		while(true){
14
//		while(true){
11
			TestClient testClient = new TestClient();
15
//			TestClient testClient = new TestClient();
-
 
16
//			testClient.getClient().sayHello("Hello");
12
			//testClient.getClient().createUser("Rajveer");
17
//			//testClient.getClient().createUser("Rajveer");
13
			String user = testClient.getClient().getUser(count++);
18
//			String user = testClient.getClient().getUser(count++);
14
			System.out.println("Wait start" + user);
19
//			System.out.println("Wait start" + user);
15
			Thread.sleep(500);
20
//			Thread.sleep(500);
16
			System.out.println("Wait over");
21
//			System.out.println("Wait over");
17
			//testClient.closeConnection();
22
//			//testClient.closeConnection();
18
		}
23
//		}
19
		/*
24
		/*
20
		testClient.getClient().sayHello("Hello Rajveer");
25
		testClient.getClient().sayHello("Hello Rajveer");
21
		System.out.println("Wait start");
26
		System.out.println("Wait start");
22
		Thread.sleep(120000);
27
		Thread.sleep(120000);
23
		System.out.println("Wait over");
28
		System.out.println("Wait over");