Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
411 rajveer 1
package in.shop2020.thrift.clients;
2
 
3
import java.util.HashMap;
4
 
5
import org.apache.thrift.TException;
6
 
7
import in.shop2020.serving.page.MyAccountPage;
8
import in.shop2020.serving.page.ProductPage;
9
import in.shop2020.serving.page.PageLoader.Client;
10
 
11
public class Test {
12
 
13
	public static void main(String[] a){
14
		try {
15
			PageLoaderClient pageLoaderClient = new PageLoaderClient();
16
			ProductPage pagge = pageLoaderClient.getClient().getProductPage(1000008, null);
17
			MyAccountPage page2 = pageLoaderClient.getClient().getMyAccountPage(4, new HashMap<String,String>());
18
			MyAccountPage page1 = pageLoaderClient.getClient().getMyAccountPage(4, null);
19
		} catch (TException e) {
20
			// TODO Auto-generated catch block
21
			e.printStackTrace();
22
		} catch (Exception e) {
23
			// TODO Auto-generated catch block
24
			e.printStackTrace();
25
		}
26
	}
27
 
28
 
29
}