Hi all,
 
when using jWebUnit 1.2 I found that using the tester of WebTestCase was
a good possibility to capsule code I wanted to reuse very often.
 
So my TestCases looked like this:
 
public class RendererParameterTest extends WebTestCase {
 private AdminCenterHelper acHelper;
 private RendererParameterHelper rendererParameterHelper;

 public RendererParameterTest(String name) {
  super(name);
 }
 
 public void setUp() {
  String adminUrl = AdminCenterHelper.getAdminUrl();
  getTestContext().setBaseUrl(adminUrl);
     beginAt("/abxadmin"); 
     acHelper = new AdminCenterHelper(tester);
     rendererParameterHelper = new RendererParameterHelper(tester);
 }

and like you can see it was easy to use HelperClasses which looked
similar to this one:
 
public class RendererParameterHelper extends WebTestCase {
 
 public RendererParameterHelper(WebTester tester) {
  this.tester = tester;
  uiHelper = new WebUIHelper(tester);
 }

so how can I do this now, because the tester in WebTestCase is declared
private? Any experience with other architectures? Any suggestions?
 
thanx for any help in advance,
 
Dirk.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to