1 package com.atlassian.pageobjects.binder;
2
3 import com.atlassian.pageobjects.PageBinder;
4 import com.atlassian.pageobjects.Page;
5 import com.atlassian.pageobjects.ProductInstance;
6 import com.atlassian.pageobjects.TestedProduct;
7
8 import static org.mockito.Mockito.mock;
9
10
11
12
13 class MyTestedProduct implements TestedProduct<SetTester>
14 {
15 private final SetTester setTester;
16 private final PageBinder pageBinder = mock(PageBinder.class);
17 private final ProductInstance productInstance = mock(ProductInstance.class);
18
19 public MyTestedProduct(SetTester setTester)
20 {
21 this.setTester = setTester;
22 }
23
24
25 public <P extends Page> P visit(Class<P> pageClass, Object... args)
26 {
27 return null;
28 }
29
30 public PageBinder getPageBinder()
31 {
32 return pageBinder;
33 }
34
35 public ProductInstance getProductInstance()
36 {
37 return productInstance;
38 }
39
40 public SetTester getTester()
41 {
42 return setTester;
43 }
44
45 }